SstOAuth2AbstractGrant
Subclasses implement different grant types (also known as 'flows') for OAuth2.0.
You initiate the OAuth2.0 protocol flow by instantiating a grant subclass to eventually obtain a SstOAuth2HttpClient with SstOAuth2Credentials to perform requests against an API that is protected with OAuth2.0.
Class Methods
None
Instance Methods
clientId
  Return the client id.
     
     Answers: 
        <String>
clientSecret
  Return the client secret.
     
     Answers:
        <String>
clientSecret:
  Set the client secret when the OAuth2 client is a confidential client.
     
     Arguments:
        clientSecretString - <String>
scope
  Return the scope
     
     Answers:
        <String>
scope:
  Adds an (optional) scope string in the (space-separated) list of scopes.
     
     Arguments:
        scopeString - <String> 
tokenUrl
  Return the token URL
     
     Answers:
        <SstUrl>
useBasicAuth
  Returns value of the setting to use Basic Authentication in both the authorization and access token requests.
     Per default, this is True.
     
     Answers:
        <Boolean>
useBasicAuth:
  Define the setting to use Basic Authentication in the access token request for confidential clients (i.e. using client id and client secret).
     Per default, this is set to true, which is the recommended setting.
     
     When set to false on confidential clients, the authentication parameters (client id and client secret) are sent in the POST body.
     
     Arguments:
        aBoolean - <Boolean>
Last modified date: 01/09/2026