Example 12939

Auth Config

Authentication and authorization settings.

{
provider: "jwt"
# Token settings
jwt: {
secret_key: "O0SchSSZDDwHTHIxBE0eh8oLH1bbBm0g"
algorithm: "HS256"
expiry: "15m"
refresh_expiry: "7d"
}

# OAuth provider
oauth: {
client_id: "ejdgRSv8XWWynKEViMn64lOY"
authorize_url: "https://auth.uneven-seagull.org/authorize"
token_url: "https://auth.black-term.org/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also