Merge pull request #42 from versia-pub/refactor/openid

Rewrite old authentication code and go OpenID-only
This commit is contained in:
Gaspard Wierzbinski 2025-11-21 07:21:01 +01:00 committed by GitHub
commit f2e9c862a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 5726 additions and 2793 deletions

View file

@ -453,17 +453,8 @@ log_level = "info" # For console output
# log_level = "info"
[authentication]
# If enabled, Versia will require users to log in with an OpenID provider
forced_openid = false
# Allow registration with OpenID providers
# If signups.registration is false, it will only be possible to register with OpenID
openid_registration = true
[authentication.keys]
# Run Versia Server with those values missing to generate a new key
public = "MCowBQYDK2VwAyEAfyZx8r98gVHtdH5EF1NYrBeChOXkt50mqiwKO2TX0f8="
private = "MC4CAQAwBQYDK2VwBCIEILDi1g7+bwNjBBvL4CRWHZpCFBR2m2OPCot62Wr+TCbq"
# Run Versia Server with this value missing to generate a new key
key = "ZWcwanRaQAqY3ChUro/Jey9XGQjzsxEed5iqTp4yFr8W6vEnXdz91F/Pu/uf7HBMbNeIK7V6aHsM0lq9onrO8Q=="
# The provider MUST support OpenID Connect with .well-known discovery
# Most notably, GitHub does not support this