Skip to content

2039 - Auth Config

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

maml
{
  provider: "oauth2"
  # Token settings
  jwt: {
    secret_key: "0rcR85Upo2ifu1s2Bf0QdHsPA8bJytTL"
    algorithm: "RS256"
    expiry: "24h"
    refresh_expiry: "7d"
  }

  # OAuth provider
  oauth: {
    client_id: "wa6YVAlsgdx8esfDjZG9g2s4"
    authorize_url: "https://auth.simplistic-instance.com/authorize"
    token_url: "https://auth.glaring-drug.net/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also