Issue 65 - Add alternative auth to enable non-LDAP contributors
This commit is contained in:
Родитель
90c566a4ed
Коммит
f69032792f
|
@ -9,7 +9,10 @@ module.exports = {
|
|||
{
|
||||
html: {
|
||||
title: 'bugzilla-dashboard'
|
||||
}
|
||||
},
|
||||
env: {
|
||||
ALTERNATIVE_AUTH: false,
|
||||
},
|
||||
}
|
||||
],
|
||||
'@neutrinojs/jest',
|
||||
|
|
|
@ -28,4 +28,11 @@ To regenerate it run this and commit the updated file:
|
|||
|
||||
```bash
|
||||
node scripts/generateTriageOwners.js
|
||||
```
|
||||
```
|
||||
|
||||
## Contribute
|
||||
|
||||
If you don't have LDAP access you can start the app with `yarn start:alternativeAuth` and use Google or GitHub to authenticate. This will
|
||||
not give you access to a functioning app, however, it will allow you to make contributions to the authenticated interface.
|
||||
|
||||
Issue #66 will add fake data into this alternative auth approach.
|
|
@ -8,6 +8,7 @@
|
|||
"scripts": {
|
||||
"build": "webpack --mode production",
|
||||
"start": "webpack-dev-server --mode development",
|
||||
"start:alternativeAuth": "ALTERNATIVE_AUTH=true webpack-dev-server --mode development",
|
||||
"test": "jest",
|
||||
"lint": "eslint --cache --format codeframe --ext mjs,jsx,js src test"
|
||||
},
|
||||
|
|
|
@ -6,11 +6,11 @@ const config = {
|
|||
orgData: 'project/bugzilla-management-dashboard/realOrg',
|
||||
},
|
||||
auth0Options: {
|
||||
domain: 'auth.mozilla.auth0.com',
|
||||
clientID: 'DGloMN2BXb0AC7lF5eRyOe1GXweqBAiI',
|
||||
domain: process.env.ALTERNATIVE_AUTH ? 'mozilla-frontend-infra.auth0.com' : 'auth.mozilla.auth0.com',
|
||||
clientID: process.env.ALTERNATIVE_AUTH ? 'nWIQUJ5lOiyYHgK4Jm5nPs5hM6JUizwt' : 'DGloMN2BXb0AC7lF5eRyOe1GXweqBAiI',
|
||||
redirectUri: new URL(loginCallbackRoute, window.location).href,
|
||||
scope: 'taskcluster-credentials full-user-credentials openid profile email',
|
||||
audience: 'login.taskcluster.net',
|
||||
audience: process.env.ALTERNATIVE_AUTH ? '' : 'login.taskcluster.net',
|
||||
responseType: 'token id_token',
|
||||
},
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче