OAuth User Authentication with Escape¶
Description¶
The 'OAuth User Credentials' preset is designed for authentication using the OAuth 2.0 framework with user password credentials:
- OAuth Token Endpoint: Authentication requests are sent to the specified OAuth token endpoint of an OpenID Connect server.
- Client Credentials: Includes the client ID and client secret for authenticating the OAuth request.
- User Password Credentials: This preset supports the OAuth password grant type, using individual user passwords for token generation.
This method is suitable for systems that require secure, OAuth-based authentication with user credentials, especially in scenarios where direct user-password-based authentication is preferred.
Examples¶
presets:
- type: oauth_userpass
url: https://oauth.example.com/token
client_id: client123
client_secret: secretXYZ
users:
- username: user1
password: pass1
- username: user2
password: pass2
- username: user3
password: pass3
scopes:
- create
- delete
Extensive Configuration¶
Property | Type | Default | Description |
---|---|---|---|
client_id * | string | The client ID to use for the OAuth requests | |
client_secret * | string | The client secret to use for the OAuth requests | |
type * | Const[oauth_userpass] | oauth_userpass | |
url * | string | The URL of the token endpoint of the OpenIDConnect server | |
users * | List[ OAuthUserpassUserPreset] | A list of users to create |
Objects¶
OAuthUserpassUserPreset¶
Property | Type | Default | Description |
---|---|---|---|
cookies | Dict[string, string] | null | Optional cookies injected during the authentication process and in authentified requests. |
headers | Dict[string, string] | null | Optional headers injected during the authentication process and in authentified requests. |
password * | string | The password of the user. | |
scopes | List[string] | null | A list of scopes to request for the user. If not specified, no scope will be requested. |
username * | string | The username of the user. |