SstOAuth2JWTBearerGrant
This class implements the "JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants" (RFC 7523)
Class Methods
newWithJwt:tokenUrl:
Create the 'JWT Bearer Authorization' grant which can be used to create the http client.
Arguments:
jwtString: <String> the Json Web Token in JWS format
tokenUrl: <SstUrl> the access token endpoint URL
Answers:
<SstOauth2JWTBearerGrant>
Instance Methods
clientId:
Set the (optional) clientId parameter
Client authentication is optional for the JWT bearer grant type, but may be required by the authorization server.
See https://datatracker.ietf.org/doc/html/rfc7523#section-3.1
Arguments:
aString - <String>
createClient
When successful, returns the OAuth2 https client that can be used to make API calls on the protected resources.
Answers:
<SstOAuth2HttpClient>
Raises:
<SstOAuth2Error>
createClientWithTransportScheme:
When successful, returns the OAuth2 http client (with the provided schemeId) that can be used to make API calls on the protected resources.
Arguments
schemeId - <String>
Answers:
<SstOAuth2HttpClient>
Raises:
<SstOAuth2Error>
Last modified date: 01/09/2026