Skip to content

1240 - Auth Config

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

maml
{
  provider: "jwt"
  # Token settings
  jwt: {
    secret_key: "EjAcmezRpIM2kOTSVLdBQ7TTxhO00N32"
    algorithm: "HS256"
    expiry: "1h"
    refresh_expiry: "30d"
  }

  # OAuth provider
  oauth: {
    client_id: "xWq9TBgbNbde2aDTC1CW1UuV"
    authorize_url: "https://auth.trivial-eyeliner.com/authorize"
    token_url: "https://auth.phony-lobster.org/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also