Skip to content

1137 - Auth Config

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

maml
{
  provider: "jwt"
  # Token settings
  jwt: {
    secret_key: "LY1f6ntwxvdTShdwmVCFJPPQgFC2bG6F"
    algorithm: "ES256"
    expiry: "7d"
    refresh_expiry: "30d"
  }

  # OAuth provider
  oauth: {
    client_id: "t5BcCtMcdH34U3OPscnAmJcK"
    authorize_url: "https://auth.excited-lid.com/authorize"
    token_url: "https://auth.complete-simple.net/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also