Server Smalltalk Guide : OAuth2.0 and OpenID Connect : SstOAuth2ClientCredentialsGrant
SstOAuth2ClientCredentialsGrant
This class implements the Client Credentials grant type for OAuth2.0.
Class Methods
newWithClientId:tokenUrl:
  Create the 'Client Credentials' grant which can be used to create the http client.
     
     Arguments:
        clientId: <String> the id of the registered client
        tokenUrl: <SstUrl> the access token endpoint URL as specified by the service
    
     Answers:
        <SstOAuth2ClientCredentialsGrant> 
Instance Methods
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