Example 1432

Auth Config

Authentication and authorization settings.

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

# OAuth provider
oauth: {
client_id: "Ju7gnnhVBd7wwxnexXhV0FRR"
authorize_url: "https://auth.long-term-dulcimer.com/authorize"
token_url: "https://auth.primary-goat.info/token"
scopes: [
"openid"
"profile"
"email"
]
}

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

See also