7.0.10 • Published 11 months ago

@getg5/g5-auth v7.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
11 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.0

1 year ago

7.0.4

1 year ago

7.0.3

1 year ago

7.0.2

1 year ago

7.0.1

1 year ago

7.0.8

12 months ago

7.0.7

12 months ago

7.0.6

12 months ago

7.0.9

11 months ago

7.0.10

11 months ago

6.1.0

2 years ago

6.1.0-pre

2 years ago

6.0.1-pre

3 years ago

6.0.0

3 years ago

5.1.0-beta

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.2-beta

3 years ago

5.0.1

4 years ago

5.0.0

4 years ago

5.0.0-beta.4

4 years ago

5.0.0-beta.3

4 years ago

5.0.0-beta.2

4 years ago

5.0.0-beta.1

4 years ago

5.0.0-beta.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.0.1

4 years ago

3.0.0

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago