Example 2721

Auth Config

Authentication and authorization settings.

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

# OAuth provider
oauth: {
client_id: "NTOtI0sX1Ogc9mn7IhGddhvy"
authorize_url: "https://auth.potable-netsuke.org/authorize"
token_url: "https://auth.judicious-verve.name/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also