Skip to main content
Ctrl+K
station-control-client 12.0.3 documentation - Home
  • API Reference
    • client
      • authentication
        • iqm.station_control.client.authentication.AuthHeaderCallback
        • ExternalToken
        • TokenManager
        • TokenProviderInterface
        • TokensFileReader
        • iqm.station_control.client.authentication.ClientAuthenticationError
        • iqm.station_control.client.authentication.ClientConfigurationError
      • list_models
        • DutFieldDataList
        • DutList
        • ListModel
        • ListWithMetaResponse
        • ObservationDataList
        • ObservationDefinitionList
        • ObservationLiteList
        • ObservationSetDataList
        • ObservationUpdateList
        • RunLiteList
        • SequenceMetadataDataList
        • StaticQuantumArchitectureList
        • TimelineEntryList
      • qon
        • iqm.station_control.client.qon.LOCUS_SEPARATOR
        • iqm.station_control.client.qon.Locus
        • iqm.station_control.client.qon.Suffixes
        • iqm.station_control.client.qon.GATE_FIDELITY_METHODS
        • iqm.station_control.client.qon.locus_str_to_locus
        • iqm.station_control.client.qon.locus_to_locus_str
        • Domain
        • ObservationFinder
        • QON
        • QONCharacterization
        • QONControllerSetting
        • QONGateMetric
        • QONGateParam
        • QONMetric
        • QONMetricRegistry
        • QONSystemMetric
        • iqm.station_control.client.qon.UnknownObservationError
      • serializers
        • channel_property_serializer
        • datetime_serializers
        • playlist_serializers
        • run_serializers
        • setting_node_serializer
        • struct_serializer
        • sweep_serializers
        • task_serializers
      • station_control
        • StationControlClient
      • utils
        • iqm.station_control.client.utils.get_progress_bar_callback
    • interface
      • list_with_meta
        • ListWithMeta
        • Meta
      • models
        • circuit
        • dut
        • dynamic_quantum_architecture
        • jobs
        • monitor
        • observation
        • observation_set
        • run
        • sequence
        • static_quantum_architecture
        • sweep
        • type_aliases
      • pydantic_base
        • PydanticBase
      • station_control
        • StationControlInterface
  • Changelog
  • License

TokenProviderInterface

Contents

  • TokenProviderInterface
    • TokenProviderInterface.get_token()
    • TokenProviderInterface.close()

TokenProviderInterface#

class TokenProviderInterface#

Bases: ABC

Interface to token provider

Module: iqm.station_control.client.authentication

Methods

close

Close the authentication session.

get_token

Return a valid access token.

abstract get_token()#

Return a valid access token.

Raises:

ClientAuthenticationError – acquiring the token failed

Return type:

str

abstract close()#

Close the authentication session.

Raises:

ClientAuthenticationError – closing the session failed

Return type:

None

previous

TokenManager

next

TokensFileReader

Contents
  • TokenProviderInterface
    • TokenProviderInterface.get_token()
    • TokenProviderInterface.close()

© Copyright 2019-2025, IQM Finland Oy, Release 12.0.3.

Last updated on 2026-01-29.