Example 3530

Auth Config

Authentication and authorization settings.

{
provider: "jwt"
# Token settings
jwt: {
secret_key: "y7GaT4gtpXmHpbIKkm2remJGBsCK2zR7"
algorithm: "HS256"
expiry: "24h"
refresh_expiry: "30d"
}

# OAuth provider
oauth: {
client_id: "SMSkGa9yZrB4wsELWcDyZ3bT"
authorize_url: "https://auth.lively-independence.biz/authorize"
token_url: "https://auth.handsome-hundred.name/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also