Example 5525
Auth Config
Authentication and authorization settings.
{
provider: "jwt"
# Token settings
jwt: {
secret_key: "lTbsiF17sm50oTNe4oa4J59T2VijY988"
algorithm: "HS256"
expiry: "7d"
refresh_expiry: "90d"
}
# OAuth provider
oauth: {
client_id: "mMazldFnyoj4xfT1DT4nhxyF"
authorize_url: "https://auth.mediocre-king.info/authorize"
token_url: "https://auth.big-fork.org/token"
scopes: [
"openid"
"profile"
"email"
]
}
session: {
store: "memory"
cookie_name: "sid"
secure: true
http_only: true
}
}