Skip to content

932 - Auth Config

Authentication and authorization settings. This is an example of a MAML document.

maml
{
  provider: "oidc"
  # Token settings
  jwt: {
    secret_key: "ZNOdrtu7cSlRejiZoNrgkEgjci1UkDwf"
    algorithm: "RS256"
    expiry: "1h"
    refresh_expiry: "7d"
  }

  # OAuth provider
  oauth: {
    client_id: "nuLZbVOvPfl9bE4SV0R0B8kG"
    authorize_url: "https://auth.glaring-tomography.net/authorize"
    token_url: "https://auth.jittery-relative.com/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

  session: {
    store: "redis"
    cookie_name: "sid"
    secure: true
    http_only: true
  }
}

See Also