https://github.com/jech/galene-sample-auth-server
https://github.com/jech/galene-sample-auth-server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jech/galene-sample-auth-server
- Owner: jech
- Created: 2022-02-18T13:13:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-08T14:23:38.000Z (about 2 years ago)
- Last Synced: 2025-02-26T23:58:21.212Z (over 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This is a sample authentication server for the Galene videoconference
server . It implements two distinct authorisation
flows: it may act as an "authorisation server", where Galene's Javscript
code consults the server, or as an "authorisation portal", where the user
logs into the portal which then securely redirects to Galene.
This example was written in Python and designed to be easy to understand
and to extend. For a more useful example, written in Go, please see
.
# Preliminaries
In either case, you should first modify the function `user_permissions` to
do authentication suitable for your site, for example by consulting an
LDAP database. Then, generate a JWK:
jose jwk gen -i '{"alg":"ES256"}' -o private.jwk
jose jwk pub -i private.jwk -o public.jwk
# Use as an authentication server
Run the server:
python galene-sample-auth-server.py -k private.jwk -p 1234
Configure the group in Galene:
{
"authServer": "http://localhost:1234/",
"authKeys": [
{...insert public key here... }
]
}
Point your browser at the usual URL
# Use as an authentication portal
Run the server:
python galene-sample-auth-server.py -k private.jwk -p 1234 -r https://galene.example.org:8443/
Configure the group in Galene:
{
"authPortal": "http://galene.example.org:1234/",
"authKeys": [
{...insert public key here... }
]
}
Point your browser at