Issue 65 - Add alternative auth to enable non-LDAP contributors

This commit is contained in:
Armen Zambrano G 2019-04-10 13:19:28 -04:00
Родитель 90c566a4ed
Коммит f69032792f
4 изменённых файлов: 16 добавлений и 5 удалений

Просмотреть файл

@ -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',
},
};