Example 11523

Auth Config

Authentication and authorization settings.

{
provider: "oauth2"
# Token settings
jwt: {
secret_key: "Ep4Fi71Ts1XB5iiXjMJd5q6jSllErYXP"
algorithm: "ES256"
expiry: "1h"
refresh_expiry: "7d"
}

# OAuth provider
oauth: {
client_id: "2Hp9WpCuYOrhdYCYQzMZ8KEk"
authorize_url: "https://auth.pointless-offset.info/authorize"
token_url: "https://auth.old-tackle.net/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also