Commit e107ff7d authored by Anton's avatar Anton
Browse files

Add prompt=none setting to auth0 config, use API client auth service

parent d44e3484
...@@ -8,7 +8,8 @@ export default ({ Vue }) => { ...@@ -8,7 +8,8 @@ export default ({ Vue }) => {
redirectUri: process.env.AUTH0_REDIRECT_URL, redirectUri: process.env.AUTH0_REDIRECT_URL,
audience: process.env.AUTH0_AUDIENCE, audience: process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write', scope: 'openid profile read write',
responseType: 'token id_token' responseType: 'token id_token',
prompt: 'none'
}, },
host: process.env.API_HOST host: process.env.API_HOST
}) })
......
import AuthService from 'mbjs-quasar/src/lib/auth-service' import AuthServiceWeb from 'mbjs-api-client/src/auth-service-web'
export default ({ Vue }) => { export default ({ Vue }) => {
const authService = new AuthService({ const authService = new AuthServiceWeb({
domain: process.env.AUTH0_DOMAIN, domain: process.env.AUTH0_DOMAIN,
clientID: process.env.AUTH0_CLIENT_ID, clientID: process.env.AUTH0_CLIENT_ID,
redirectUri: process.env.AUTH0_REDIRECT_URL, redirectUri: process.env.AUTH0_REDIRECT_URL,
audience: process.env.AUTH0_AUDIENCE, audience: process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write', scope: 'openid profile read write',
responseType: 'token id_token' responseType: 'token id_token',
prompt: 'none'
}) })
Vue.prototype.$auth = authService Vue.prototype.$auth = authService
} }
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