Skip to content
Ona Docs

Identity

ExchangeToken
identity.exchange_token(IdentityExchangeTokenParams**kwargs) -> IdentityExchangeTokenResponse
POST/gitpod.v1.IdentityService/ExchangeToken
GetAuthenticatedIdentity
identity.get_authenticated_identity(IdentityGetAuthenticatedIdentityParams**kwargs) -> IdentityGetAuthenticatedIdentityResponse
POST/gitpod.v1.IdentityService/GetAuthenticatedIdentity
GetIDToken
identity.get_id_token(IdentityGetIDTokenParams**kwargs) -> IdentityGetIDTokenResponse
POST/gitpod.v1.IdentityService/GetIDToken
ModelsExpand Collapse
Literal["ID_TOKEN_VERSION_UNSPECIFIED", "ID_TOKEN_VERSION_V1", "ID_TOKEN_VERSION_V2"]
One of the following:
"ID_TOKEN_VERSION_UNSPECIFIED"
"ID_TOKEN_VERSION_V1"
"ID_TOKEN_VERSION_V2"
class IdentityExchangeTokenResponse:
access_token: Optional[str]

access_token is the new access token

class IdentityGetAuthenticatedIdentityResponse:
organization_id: Optional[str]
organization_tier: Optional[str]
subject: Optional[Subject]

subject is the identity of the current user

id: Optional[str]

id is the UUID of the subject

formatuuid
principal: Optional[Principal]

Principal is the principal of the subject

One of the following:
"PRINCIPAL_UNSPECIFIED"
"PRINCIPAL_ACCOUNT"
"PRINCIPAL_USER"
"PRINCIPAL_RUNNER"
"PRINCIPAL_ENVIRONMENT"
"PRINCIPAL_SERVICE_ACCOUNT"
"PRINCIPAL_RUNNER_MANAGER"
class IdentityGetIDTokenResponse:
token: Optional[str]