Overview
Defines the mechanism used to authenticate users and workflows attempting to access a service or a resource. The Serverless Workflow DSL supports multiple authentication schemes to accommodate various security requirements.Authentication Object
The name of the top-level authentication definition to use. Cannot be used by authentication definitions defined at top level.
The
basic authentication scheme to use, if any.Required if no other property has been set, otherwise ignored.The
bearer authentication scheme to use, if any.Required if no other property has been set, otherwise ignored.The
certificate authentication scheme to use, if any.Required if no other property has been set, otherwise ignored.The
digest authentication scheme to use, if any.Required if no other property has been set, otherwise ignored.The
oauth2 authentication scheme to use, if any.Required if no other property has been set, otherwise ignored.The
oidc authentication scheme to use, if any.Required if no other property has been set, otherwise ignored.Basic Authentication
Defines the fundamentals of a ‘basic’ authentication.The username to use.
The password to use.
Example
Bearer Authentication
Defines the fundamentals of a ‘bearer’ authentication.The bearer token to use.
Example
Digest Authentication
Defines the fundamentals of a ‘digest’ authentication.The username to use.
The password to use.
Example
OAuth2 Authentication
Defines the fundamentals of an ‘oauth2’ authentication.The URI that references the authority to use when making OAuth2 calls.
The relative path to the endpoint for OAuth2 token requests.Defaults to
/oauth2/token.The relative path to the endpoint used to invalidate tokens.Defaults to
/oauth2/revoke.The relative path to the endpoint used to validate and obtain information about a token, typically to check its validity and associated metadata.Defaults to
/oauth2/introspect.The grant type to use.Supported values are
authorization_code, client_credentials, password, refresh_token and urn:ietf:params:oauth:grant-type:token-exchange.The client id to use.Required if the
client.authentication method has not been set to none.The client secret to use, if any.
A JWT containing a signed assertion with your application credentials.Required when
client.authentication has been set to private_key_jwt.The client authentication method to use.Supported values are
client_secret_basic, client_secret_post, client_secret_jwt, private_key_jwt or none.Defaults to client_secret_post.The encoding of the token request.Supported values are
application/x-www-form-urlencoded and application/json.Defaults to application/x-www-form-urlencoded.A list that contains valid issuers that will be used to check against the issuer of generated tokens.
The scopes, if any, to request the token for.
The audiences, if any, to request the token for.
The username to use. Used only if the grant type is
Password.The password to use. Used only if the grant type is
Password.The security token that represents the identity of the party on behalf of whom the request is being made.
The security token that represents the identity of the acting party.
Example
OAuth2 Token
Represents the definition of an OAuth2 token.The security token to use.
The type of security token to use.
OpenID Connect Authentication
Defines the fundamentals of an ‘oidc’ authentication.The URI that references the authority to use when making OpenID Connect calls.
The grant type to use.Supported values are
authorization_code, client_credentials, password, refresh_token and urn:ietf:params:oauth:grant-type:token-exchange.The client id to use.Required if the
client.authentication method has not been set to none.The client secret to use, if any.
A JWT containing a signed assertion with your application credentials.Required when
client.authentication has been set to private_key_jwt.The client authentication method to use.Supported values are
client_secret_basic, client_secret_post, client_secret_jwt, private_key_jwt or none.Defaults to client_secret_post.The encoding of the token request.Supported values are
application/x-www-form-urlencoded and application/json.Defaults to application/x-www-form-urlencoded.A list that contains valid issuers that will be used to check against the issuer of generated tokens.
The scopes, if any, to request the token for.
The audiences, if any, to request the token for.
The username to use. Used only if the grant type is
Password.The password to use. Used only if the grant type is
Password.The security token that represents the identity of the party on behalf of whom the request is being made.
The security token that represents the identity of the acting party.