Example 15239

Auth Config

Authentication and authorization settings.

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

# OAuth provider
oauth: {
client_id: "kUdOskWqgy7pQRDzgzHCYpcO"
authorize_url: "https://auth.cute-igloo.name/authorize"
token_url: "https://auth.sandy-ceramic.com/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also