openpectus.aggregator.routers.auth

Attributes

router

use_auth

tenant_id

client_id

authority_url

well_known_url

jwks_url_id_token

jwks_url_access_token

access_token_issuer

jwks_client_pkce

jwks_client_secret

UserRolesDependency

UserRolesValue

UserNameDependency

UserNameValue

UserIdDependency

UserIdValue

Functions

get_config()

decode_token_or_fail(x_identity)

user_name([x_identity])

user_roles([x_identity])

user_id([x_identity])

has_access(engine_or_run, user_roles)

Module Contents

openpectus.aggregator.routers.auth.router
openpectus.aggregator.routers.auth.use_auth
openpectus.aggregator.routers.auth.tenant_id
openpectus.aggregator.routers.auth.client_id
openpectus.aggregator.routers.auth.authority_url = 'https://login.microsoftonline.com/Uninferable/v2.0'
openpectus.aggregator.routers.auth.well_known_url
openpectus.aggregator.routers.auth.jwks_url_id_token = 'https://login.microsoftonline.com/common/discovery/keys'
openpectus.aggregator.routers.auth.jwks_url_access_token = 'https://login.microsoftonline.com/Uninferable/discovery/v2.0/keys'
openpectus.aggregator.routers.auth.access_token_issuer = 'https://sts.windows.net/Uninferable/'
openpectus.aggregator.routers.auth.get_config()
Return type:

openpectus.aggregator.routers.dto.AuthConfig

openpectus.aggregator.routers.auth.jwks_client_pkce
openpectus.aggregator.routers.auth.jwks_client_secret
openpectus.aggregator.routers.auth.decode_token_or_fail(x_identity)
Return type:

dict[str, Any]

openpectus.aggregator.routers.auth.user_name(x_identity='')
Parameters:

x_identity (Annotated[str, Header()])

Return type:

str

openpectus.aggregator.routers.auth.user_roles(x_identity='')
Parameters:

x_identity (Annotated[str, Header()])

Return type:

set[str]

openpectus.aggregator.routers.auth.user_id(x_identity='')
Parameters:

x_identity (Annotated[str, Header()])

Return type:

str | None

openpectus.aggregator.routers.auth.UserRolesDependency
openpectus.aggregator.routers.auth.UserRolesValue
openpectus.aggregator.routers.auth.UserNameDependency
openpectus.aggregator.routers.auth.UserNameValue
openpectus.aggregator.routers.auth.UserIdDependency
openpectus.aggregator.routers.auth.UserIdValue
openpectus.aggregator.routers.auth.has_access(engine_or_run, user_roles)
Parameters: