7.0.11 • Published 12 months ago

@getg5/g5-auth v7.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

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

Usage

Init() - Takes two params

  • app - The express app()
  • config - The following object
{
  passport: {
    issuer,
    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
7.0.11

12 months ago

7.0.0

2 years ago

7.0.4

2 years ago

7.0.3

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

7.0.8

2 years ago

7.0.7

2 years ago

7.0.6

2 years ago

7.0.9

2 years ago

7.0.10

2 years ago

6.1.0

3 years ago

6.1.0-pre

3 years ago

6.0.1-pre

3 years ago

6.0.0

4 years ago

5.1.0-beta

4 years ago

5.0.3

4 years ago

5.0.2

4 years ago

5.0.2-beta

4 years ago

5.0.1

5 years ago

5.0.0

5 years ago

5.0.0-beta.4

5 years ago

5.0.0-beta.3

5 years ago

5.0.0-beta.2

5 years ago

5.0.0-beta.1

5 years ago

5.0.0-beta.0

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago