Skip to content

Environments

SympAuthy uses Micronaut Environments to allow you to use well-crafted configurations out-of-the-box.

  • default: Configure every configuration keys listed below with the value indicated in the Default column of the table. It does not enable any feature that is considered unsecure.
  • by-mail: Allow the end-user to sign in/sign-up using a login/password with the login being an email address.
  • admin: Enable the Admin API and integrated admin UI. Creates an adminaudience, binds admin scopes to it, and pre-configures an admin client with all admin scopes. See the admin configuration for details.
  • Well-known providers: Pre-built configurations for common third-party providers (Google, Discord, etc.). Activating one by its environment name automatically configures the OAuth2 URLs, scopes, and claim mappings for that provider.

The micronaut environments you are using can be set using the MICRONAUT_ENVIRONMENTS environment variable. ex MICRONAUT_ENVIRONMENTS=default,by-mail,google