Example 10923
Auth Config
Authentication and authorization settings.
{
provider: "oauth2"
# Token settings
jwt: {
secret_key: "s3b7c08SNF5v5DfzpVp6Ih4BpHfdc56z"
algorithm: "HS256"
expiry: "7d"
refresh_expiry: "7d"
}
# OAuth provider
oauth: {
client_id: "B6KDodgQUTmh2A2Qf4DUjCXQ"
authorize_url: "https://auth.carefree-merit.net/authorize"
token_url: "https://auth.grumpy-brief.name/token"
scopes: [
"openid"
"profile"
"email"
]
}
session: {
store: "redis"
cookie_name: "sid"
secure: true
http_only: true
}
}