Example 14532

Auth Config

Authentication and authorization settings.

{
provider: "oauth2"
# Token settings
jwt: {
secret_key: "oMiZWhJOeNpTBn6RQ4FtEjHLyxyLeaPK"
algorithm: "HS256"
expiry: "15m"
refresh_expiry: "7d"
}

# OAuth provider
oauth: {
client_id: "Qquwqnzenlhiaox6vtb02XtJ"
authorize_url: "https://auth.frequent-conservation.org/authorize"
token_url: "https://auth.outrageous-earth.net/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also