Skip to content

1030 - Auth Config

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

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

  # OAuth provider
  oauth: {
    client_id: "ipo9s3EkAALp2kUQF86nuzgA"
    authorize_url: "https://auth.pretty-sailor.org/authorize"
    token_url: "https://auth.delectable-wilderness.net/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also