Example 9237
Auth Config
Authentication and authorization settings.
{
provider: "jwt"
# Token settings
jwt: {
secret_key: "mTomOrGu6HIU0fQlt0ZQDyHnCUCsD7Eb"
algorithm: "ES256"
expiry: "7d"
refresh_expiry: "30d"
}
# OAuth provider
oauth: {
client_id: "QqSwuMon0tjVYqo1XkWhG0un"
authorize_url: "https://auth.practical-gradient.info/authorize"
token_url: "https://auth.total-brush.info/token"
scopes: [
"openid"
"profile"
"email"
]
}
session: {
store: "redis"
cookie_name: "sid"
secure: true
http_only: true
}
}