Skip to content
Snippets Groups Projects
Verified Commit 390c36fd authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Optimalizace. Pokus bez static

parent e8b5f3a1
No related branches found
No related tags found
No related merge requests found
Pipeline #13547 passed
node_modules
dist
.nuxt
_work
......@@ -91,7 +91,7 @@ export default {
"https://iapi.pirati.cz/v1/groups",
{
// headers: {
// "X-Authorization": this.$cookie.get('auth._token.keycloak')
// "Authorization": this.$cookie.get('auth._token.keycloak')
// }
}
).then(res => res.json() )
......
export default {
target: 'static',
// target: 'static',
modules: [
'@nuxtjs/dotenv',
'@nuxtjs/axios',
......@@ -7,37 +8,33 @@ export default {
'@leandromatos/nuxt-cookie',
'@nuxtjs/vuetify'
],
auth: {
strategies: {
keycloak: {
keycloak: {
scheme: 'oauth2',
endpoints: {
authorization: `${process.env.KEYCLOAK_REMOTE_HOST}/auth/realms/${process.env.KEYCLOAK_REALM}/protocol/openid-connect/auth`,
token: undefined,
userInfo: `${process.env.KEYCLOAK_REMOTE_HOST}/auth/realms/${process.env.KEYCLOAK_REALM}/protocol/openid-connect/userinfo`,
token: undefined,
logout: `${process.env.KEYCLOAK_REMOTE_HOST}/auth/realms/${process.env.KEYCLOAK_REALM}/protocol/openid-connect/logout?redirect_uri=`
+ encodeURIComponent(String(process.env.REMOTE_API))
},
token: {
property: 'access_token',
type: 'Bearer',
name: 'Authorization',
maxAge: 1800
maxAge: 1800,
},
refreshToken: {
property: 'refresh_token',
maxAge: 60 * 60 * 24 * 30
},
responseType: 'token',
grantType: 'authorization_code',
clientId: process.env.KEYCLOAK_CLIENT_ID,
scope: ['openid', 'profile'],
codeChallengeMethod: 'S256',
}
},
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment