Example 13224
Auth Config
Authentication and authorization settings.
{
provider: "oauth2"
# Token settings
jwt: {
secret_key: "t0wCwKyaOh1l0E28R1mK5W1qI1y6F767"
algorithm: "RS256"
expiry: "24h"
refresh_expiry: "30d"
}
# OAuth provider
oauth: {
client_id: "BIQJz8MtAmUTydUNrWXzDA9A"
authorize_url: "https://auth.usable-representation.net/authorize"
token_url: "https://auth.pitiful-pearl.org/token"
scopes: [
"openid"
"profile"
"email"
]
}
session: {
store: "redis"
cookie_name: "sid"
secure: true
http_only: true
}
}