Example 7425

Auth Config

Authentication and authorization settings.

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

# OAuth provider
oauth: {
client_id: "XZJxM9X1pVp44GGnKhziUeyG"
authorize_url: "https://auth.mundane-fowl.com/authorize"
token_url: "https://auth.difficult-goat.info/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also