Piece Auth
Learn about piece authentication
Piece authentication is used to gather user credentials and securely store them for future use in different flows. The authentication must be defined as the auth
parameter in the createPiece
, createTrigger
, and createAction
functions.
This requirement ensures that the type of authentication can be inferred correctly in triggers and actions.
Friendly Tip: Only at most one authentication is allowed per piece.
Secret Text
This authentication collects sensitive information, such as passwords or API keys. It is displayed as a masked input field.
Example:
Username and Password
This authentication collects a username and password as separate fields.
Example:
Custom
This authentication allows for custom authentication by collecting specific properties, such as a base URL and access token.
Example:
OAuth2
This authentication collects OAuth2 authentication details, including the authentication URL, token URL, and scope.
Example:
Please note OAuth2GrantType.CLIENT_CREDENTIALS
is also supported for service-based authentication.