Skip to content

1040 - Auth Config

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

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

  # OAuth provider
  oauth: {
    client_id: "FLLDHvTx4tFGdKmD0DCeWPEH"
    authorize_url: "https://auth.sticky-filter.biz/authorize"
    token_url: "https://auth.diligent-doing.net/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also