Skip to content

jech/galene-sample-auth-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

This is a sample authentication server for the Galene videoconference
server <https://galene.org>.  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
<https://github.com/jech/galene-ldap>.


# 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 <https://galene.example.org:8443/>


# 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 <http://galene.example.org:1234>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages