swapJWTForTokens

open fun swapJWTForTokens(httpAccessor: HttpAccess, loginServerUrl: URI, jwt: String): OAuth2.TokenEndpointResponse

Swaps a JWT for regular OAuth tokens. This is typically the first step after receiving a JWT from a link. In addition, this will also call the identity service to populate the username field.

Parameters

httpAccessor

HttpAccess instance.

loginServerUrl

The server (e.g. https://login.salesforce.com) that the auth code was generated from.

jwt

JWT issued by the OAuth authorization flow.

Throws