callIdentityService

open fun callIdentityService(httpAccessor: HttpAccess, identityServiceIdUrl: String, authToken: String): OAuth2.IdServiceResponse

Calls the identity service to determine the username of the user and the mobile policy, given their identity service ID and an access token.

Return

IdServiceResponse instance.

Parameters

httpAccessor

HttpAccessor instance.

identityServiceIdUrl

Identity service URL.

authToken

Access token.

Throws


open fun callIdentityService(httpAccessor: HttpAccess, identityServiceIdUrl: String, authToken: String, @Nullable tokenType: String, @Nullable credentialsIdentifier: String): OAuth2.IdServiceResponse

Calls the identity service to determine the username of the user and the mobile policy, given their identity service ID and an access token. When the token is DPoP-bound, attaches a DPoP proof header.

Return

IdServiceResponse instance.

Parameters

httpAccessor

HttpAccessor instance.

identityServiceIdUrl

Identity service URL.

authToken

Access token.

tokenType

Token type (e.g. "Bearer" or "DPoP"), or null for default Bearer.

credentialsIdentifier

Identifier used to look up the DPoP keypair, or null.

Throws