Skip to main content

ResourceOwnerFlowRequest

Processes steps that can immediately return a Token.

The body should include the following values:

Implements

  • TokenRequest

Index

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

acceptsType?: application/json = ...

The accepts type for the expected response should be application/json.

readonlyclientId

clientId: string

The client ID supplied to the constructor.

optionalcontentType

contentType?: application/x-www-form-urlencoded = ...

The content type of the request body should be application/x-www-form-urlencoded.

httpMethod

httpMethod: POST = ...

The HTTP Method should always return POST.

readonlyopenIdConfiguration

openIdConfiguration: OpenIdConfiguration

The OpenID configuration supplied to the constructor.

readonlypassword

password: string

The password supplied to the constructor.

readonlyscope

scope: string

The scope supplied to the constructor.

url

url: URL

This should return the tokenEndpoint property of the OpenIdConfiguration response.

readonlyusername

username: string

The username supplied to the constructor.

Methods

optionalbody

  • body(): string
  • The body should include the follow keys, properly URL encoded:

    KeyValue
    grant_type"password"
    client_idthe clientId value
    scopethe scope value
    usernamethe username value
    passwordthe password value

    Returns string