OAuth

Provides logins and session management for many OAuth providers

This is a module for Project Forge. It provides logins and session management for many OAuth providers.

https://github.com/kyleu/projectforge/tree/master/module/oauth

License

Licensed under CC0

Usage

1
2
3
4
5
6
// The first parameter indicates if all actions should be allowed by default
user.SetPermissions(false,
user.Perm("/admin", "github:projectforge.dev", true), // grant admin access to users signed into GitHub with an email domain ending in projectforge.dev
user.Perm("/admin", "*", false), // deny other users access to admin
user.Perm("/", "*", true), // allow all other traffic
)

Technology