2.12.0 • Published 1 day ago

@luigi-project/plugin-auth-oauth2 v2.12.0

Weekly downloads
467
License
Apache-2.0
Repository
github
Last release
1 day ago

OAuth2 - Authorization Plugin for Luigi Core

Overview

This project contains a library that allows your application to extend the Luigi framework with an OAuth2 authorization provider. Further configuration details can be found in the main documentation.

Installation

Install the plugin in your project using npm:

npm install @luigi-project/plugin-auth-oauth2

Import the plugin in places where you want to use it, depending on the environment of your choice:

var oAuth2ImplicitGrant = require('@luigi-project/plugin-auth-oauth2');

or

import oAuth2ImplicitGrant from '@luigi-project/plugin-auth-oauth2';

Then, integrate it as an authorization provider in your Luigi configuration file:

Luigi.setConfig({
  auth: {
    use: 'myProviderConfig',
    myProviderConfig: {
      idpProvider: oAuth2ImplicitGrant,
      // ... configuration data comes here
      redirect_uri: '/assets/auth-oauth2/callback.html'
    }
  }
})

The callback.html needs to be copied to a folder in your Luigi Core installation, which is the return path for the IdP provider, configured through the redirect_uri setting. The default location of redirect_uri is /assets/auth-oauth2/callback.html.

const CopyWebpackPlugin = require('copy-webpack-plugin');

{
  plugins: [
    new CopyWebpackPlugin([{
      from: 'node_modules/@luigi-project/plugin-auth-oauth2/callback.html',
      to: 'src/assets/auth-oauth2'
    }])
  ]
}
2.12.0

10 days ago

2.11.0

23 days ago

2.10.0

1 month ago

2.9.0

3 months ago

2.8.0

4 months ago

2.7.5

5 months ago

2.7.4

5 months ago

2.4.0

9 months ago

2.3.0

10 months ago

2.7.0

7 months ago

2.7.2

6 months ago

2.7.1

7 months ago

2.6.1

8 months ago

2.6.0

8 months ago

2.6.3

7 months ago

2.6.2

8 months ago

2.7.3

5 months ago

2.3.0-rc5

10 months ago

2.5.0

9 months ago

2.5.1

8 months ago

2.2.1

12 months ago

2.2.0

1 year ago

2.3.0-rc1

1 year ago

2.3.0-rc2

1 year ago

2.3.0-rc3

12 months ago

2.3.0-rc4

12 months ago

2.1.0

1 year ago

2.2.0-rc1

1 year ago

2.2.0-rc2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

2.0.0-rc7

1 year ago

2.0.0-rc6

1 year ago

2.0.0-rc8

1 year ago

2.0.0-rc5

1 year ago

2.0.0-rc4

1 year ago

2.0.0-rc3

1 year ago

2.0.0-rc2

1 year ago

2.0.0-rc1

1 year ago

1.26.0

1 year ago

1.25.0

2 years ago

1.25.1

2 years ago

1.23.0

2 years ago

1.23.1

2 years ago

1.24.0

2 years ago

1.22.0

2 years ago

1.21.0

2 years ago

1.20.1

2 years ago

1.18.1

3 years ago

1.19.0

2 years ago

1.20.0

2 years ago

1.18.0

3 years ago

1.17.0

3 years ago

1.16.2

3 years ago

1.16.1

3 years ago

1.16.0

3 years ago

1.15.0

3 years ago

1.14.3

3 years ago

1.14.1

3 years ago

1.14.2

3 years ago

1.14.0

3 years ago

1.13.0

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-next.2

4 years ago

1.0.0-next.1

4 years ago

1.0.0-bbqseb.41

4 years ago

1.0.0-rc.1

4 years ago

1.0.0-next.0

4 years ago