SstOAuth2ResourceOwnerPasswordGrant
This class implements the Resource Owner Password grant type for OAuth2.0. It's use is deprecated and discouraged. It only exists to ease transition to OAuth2 for certain services.
Class Methods
newWithClientId:tokenUrl:
Create the 'Resource Owner Password' grant which can be used to create the http client.
Arguments:
clientId: <String> the id of the registered client; nil for non-confidential clients
tokenUrl: <SstUrl> the access token endpoint URL as specified by the service
Answers:
<SstOAuth2ResourceOwnerPasswordGrant>
Instance Methods
createClientWithUsername:password:
When successful, returns the OAuth2 http client that can be used to make API calls on the protected resources.
See https://datatracker.ietf.org/doc/html/rfc6749#section-4.3.2
Arguments
username - <String>
password - <String>
Answers:
<SstOAuth2HttpClient>
Raises:
<SstOAuth2Error>
Last modified date: 01/09/2026