feat: Generic OAuth2 Authentication (#2388)

* chore: additional dependency

* feat: OAuth2 authentication provider

* docs: add env vars

* chore: lock file

* feat: add malformed user info error and notice

* feat: configurable scopes

* fix: explicitly enable state and disable pkce

* chore: remove externally supplied username from account provisioner use

* chore: remove upstream error

* chore: add explicit import for fetch

* chore: remove unused env var from sample

* docs: openid connect claims

* fix: forward fetch errors

* feat: configurable team claim name

* docs: move OIDC env vars together

* refactor: change provider name

* refactor: rename error to match provider

* fix: resolve claim using lodash.get

* refactor: remove OIDC_TEAM_CLAIM and hard code team name
This commit is contained in:
Greg Linklater
2021-09-03 04:50:17 +02:00
committed by GitHub
parent a3df9e868f
commit 4b2bf28531
6 changed files with 180 additions and 14 deletions

View File

@@ -115,6 +115,7 @@
"oy-vey": "^0.10.0",
"passport": "^0.4.1",
"passport-google-oauth2": "^0.2.0",
"passport-oauth2": "^1.6.0",
"passport-slack-oauth2": "^1.1.0",
"pg": "^8.5.1",
"pg-hstore": "^2.3.3",