Example 8238

Auth Config

Authentication and authorization settings.

{
provider: "oauth2"
# Token settings
jwt: {
secret_key: "4N35JRAgjVjzellQK8j0LOBaaQwgtlnP"
algorithm: "HS256"
expiry: "24h"
refresh_expiry: "30d"
}

# OAuth provider
oauth: {
client_id: "ZQibOd3hLMlXimX8FO0XRy3k"
authorize_url: "https://auth.sniveling-soup.info/authorize"
token_url: "https://auth.busy-recovery.name/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also