6.1.0-pre • Published 1 year ago
@getg5/g5-auth v6.1.0-pre
G5 Auth JS
G5 auth provides a solution to enable express apps to use g5 auth
Requirements
G5 Auth should work with and database type that sequelize supports though it was only tested with postgres
Local Development
Auth0 Tenants
Unit Testing
Usage
Init()
- Takes two params
- app - The express app()
- config - The following object
{
passport: {
authorizationURL,
tokenURL,
clientID,
clientSecret,
callbackURL,
},
authMeEndpoint,
session: {
secret
},
sucessRedirectPath:
}
isAuthenticated()
- Takes req, res, next from express
Example of use :
app.get('/client', , g5Auth.isAuthenticated, (req, res) => res.sendFile('client/index.html'))
G5 Updatable also exposes two GET endpoints:
/g5_auth/users/auth/g5
used to authenticate the user/g5_auth/users/auth/g5/callback
used to redirect the authenticated user
6.1.0
1 year ago
6.1.0-pre
1 year ago
6.0.1-pre
2 years ago
6.0.0
2 years ago
5.1.0-beta
2 years ago
5.0.3
2 years ago
5.0.2
2 years ago
5.0.2-beta
2 years ago
5.0.1
3 years ago
5.0.0
3 years ago
5.0.0-beta.4
3 years ago
5.0.0-beta.3
3 years ago
5.0.0-beta.2
3 years ago
5.0.0-beta.1
3 years ago
5.0.0-beta.0
3 years ago
4.1.0
3 years ago
4.0.0
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.0.9
4 years ago
2.0.8
4 years ago
2.0.7
4 years ago
2.0.6
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.0
5 years ago
0.0.1
5 years ago