Skip to main content

Authentication

Kreya centralizes authentication management. Often, you only need a few different "authentication configurations" in your projects.

You can add, edit and delete authentication configurations via Project → Authentications.

Basic authentication#

To add a basic authentication configuration, choose the type Basic, enter your username and password, then click Save.

OAuth2 / OpenID-Connect#

To add an authentication configuration for OAuth2 or OpenID-Connect, choose the type OAuth2 / OpenID-Connect. Enter the required values. Note that, depending on your authentication provider and settings, not all fields must be filled in.

Templating#

You can use templating in authentications like nearly everywhere else. This will save you a lot of time, for example when you have different passwords for each environment.

Using templating in authentication configuration

Storing sensitive information#

Values entered in authentication configurations (such as Basic authentication passwords) are stored in plain-text in the Kreya project. If you share your project, you may want to extract sensitive information. Use the Environment feature and store sensitive information in User specific data. While this still stores your sensitive data in plain text, it will be stored outside of the Kreya project and thus won't be shared.

Using authentication configurations#

To reference an authentication configuration from an operation, simply click the Auth tab and select your desired authentication configuration. Kreya now adds the correct authentication value to the request.

Configuration an operation to use an authentication configuration