Example 10632

Auth Config

Authentication and authorization settings.

{
provider: "oauth2"
# Token settings
jwt: {
secret_key: "A4EFvXh9mlSN3SY6cRF00iuD84YSKOyg"
algorithm: "HS256"
expiry: "7d"
refresh_expiry: "30d"
}

# OAuth provider
oauth: {
client_id: "1RoF8jEvfzAiQ2sUgwjgw8zI"
authorize_url: "https://auth.sweet-insolence.org/authorize"
token_url: "https://auth.stiff-bowling.org/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also