Example 4024

Auth Config

Authentication and authorization settings.

{
provider: "oauth2"
# Token settings
jwt: {
secret_key: "A4NwignUEUODCdkUZZI9hcJ6jCThYmqp"
algorithm: "RS256"
expiry: "7d"
refresh_expiry: "90d"
}

# OAuth provider
oauth: {
client_id: "roAH4OP65OnaQkVWZx60KNEa"
authorize_url: "https://auth.sarcastic-story.org/authorize"
token_url: "https://auth.internal-sailor.biz/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also