Commit 9ed6188a authored by Anton's avatar Anton

Use AuthServiceWeb from updated 2.1.0 API client, configure silent login, update changelog

parent 3ad58461
......@@ -31,6 +31,7 @@ under `media/create` (playback possible using forked
- Mobile compatiblity for MoSys Editor
- The file `statics/env.js` can be overwritten to configure
the frontend at runtime
- Authentication service attempts silent login when token expires
### Changed
......
......@@ -10529,12 +10529,13 @@
"integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg=="
},
"mbjs-api-client": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/mbjs-api-client/-/mbjs-api-client-2.0.0.tgz",
"integrity": "sha512-/8/DKh6n2DTI257V53KiG20hFAX3z2LKLONN8rjGcKBFUc6D99kOG4viuTHyWhh5/XT6IKtug3nHyojaJ5IRFg==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mbjs-api-client/-/mbjs-api-client-2.1.0.tgz",
"integrity": "sha512-VRCnBlnlYPsf+6ogakIw3KlYl5XihP+ySfgIjC9ZJqvqzzKvyX1ha3pbIa40qVAqb/zKMoItX1dfrI/m0AAhPg==",
"requires": {
"auth0-js": "^9.6.0",
"axios": "^0.18.0",
"mbjs-utils": "0.0.6",
"tiny-emitter": "^2.0.2"
}
},
......
import AuthService from 'mbjs-quasar/src/lib/auth-service'
import AuthServiceWeb from 'mbjs-api-client/src/auth-service-web'
import AuthServiceElectron from 'mbjs-quasar/src/lib/auth-service-electron'
export default ({ Vue }) => {
......@@ -7,13 +7,14 @@ export default ({ Vue }) => {
authService = new AuthServiceElectron()
}
else {
authService = new AuthService({
authService = new AuthServiceWeb({
domain: window.AUTH0_DOMAIN || process.env.AUTH0_DOMAIN,
clientID: window.AUTH0_CLIENT_ID || process.env.AUTH0_CLIENT_ID,
redirectUri: `${document.location.origin}/users/callback`,
audience: window.AUTH0_AUDIENCE || process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write',
responseType: 'token id_token'
responseType: 'token id_token',
prompt: 'none'
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment