Example 11731

Auth Config

Authentication and authorization settings.

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

# OAuth provider
oauth: {
client_id: "7U866DqeFhRqXQ3ROpHskSiU"
authorize_url: "https://auth.shadowy-tenement.biz/authorize"
token_url: "https://auth.tired-interviewer.biz/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also