Skip to content
Ona Docs

Identity

ExchangeToken
client.identity.exchangeToken(IdentityExchangeTokenParams { exchangeToken } body, RequestOptionsoptions?): IdentityExchangeTokenResponse { accessToken }
POST/gitpod.v1.IdentityService/ExchangeToken
GetAuthenticatedIdentity
client.identity.getAuthenticatedIdentity(IdentityGetAuthenticatedIdentityParams { empty } body, RequestOptionsoptions?): IdentityGetAuthenticatedIdentityResponse { organizationId, organizationTier, subject }
POST/gitpod.v1.IdentityService/GetAuthenticatedIdentity
GetIDToken
client.identity.getIDToken(IdentityGetIDTokenParams { audience, version } body, RequestOptionsoptions?): IdentityGetIDTokenResponse { token }
POST/gitpod.v1.IdentityService/GetIDToken
ModelsExpand Collapse
IDTokenVersion = "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"
IdentityExchangeTokenResponse { accessToken }
accessToken?: string

access_token is the new access token

IdentityGetAuthenticatedIdentityResponse { organizationId, organizationTier, subject }
organizationId?: string
organizationTier?: string
subject?: Subject { id, principal }

subject is the identity of the current user

id?: string

id is the UUID of the subject

formatuuid
principal?: 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"
IdentityGetIDTokenResponse { token }
token?: string