ResourceOwnerFlowRequest
Implements
- TokenRequest
Index
Constructors
Properties
Methods
Constructors
constructor
Constructor to create the token request.
Parameters
openIdConfiguration: OpenIdConfiguration
The pre-fetched OpenID Configuration.
clientId: string
The client ID for the configured client.
scope: string
The scopes for the client.
username: string
The username supplied to the ResourceOwnerFlow/start function.
password: string
The password supplied to the ResourceOwnerFlow/start function.
Returns ResourceOwnerFlowRequest
Properties
optionalacceptsType
The accepts type for the expected response should be application/json.
readonlyclientId
The client ID supplied to the constructor.
optionalcontentType
The content type of the request body should be application/x-www-form-urlencoded.
httpMethod
The HTTP Method should always return POST.
readonlyopenIdConfiguration
The OpenID configuration supplied to the constructor.
readonlypassword
The password supplied to the constructor.
readonlyscope
The scope supplied to the constructor.
url
This should return the tokenEndpoint property of the OpenIdConfiguration response.
readonlyusername
The username supplied to the constructor.
Methods
optionalbody
The body should include the follow keys, properly URL encoded:
Key Value grant_type"password" client_idthe clientIdvaluescopethe scopevalueusernamethe usernamevaluepasswordthe passwordvalueReturns string
Processes steps that can immediately return a Token.
The body should include the following values: