Example 2731

Auth Config

Authentication and authorization settings.

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

# OAuth provider
oauth: {
client_id: "0ZKU6Y9fXHs33duwzYliJCR5"
authorize_url: "https://auth.gummy-sanity.biz/authorize"
token_url: "https://auth.joyous-minor.biz/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also