Example 5824

Auth Config

Authentication and authorization settings.

{
provider: "oidc"
# Token settings
jwt: {
secret_key: "Yj2FLDag0pTS7Jyn6x7CEgAPKU0pxRSW"
algorithm: "HS256"
expiry: "1h"
refresh_expiry: "90d"
}

# OAuth provider
oauth: {
client_id: "DTb8qCw2Y7UnKu4feSHWH73J"
authorize_url: "https://auth.careless-retrospectivity.name/authorize"
token_url: "https://auth.powerless-railway.info/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also