Skip to content
Snippets Groups Projects
Verified Commit b003a152 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: deployable

parent 756a8e7d
No related branches found
No related tags found
No related merge requests found
Pipeline #48540 failed
...@@ -23,8 +23,8 @@ EXPOSE 3000 ...@@ -23,8 +23,8 @@ EXPOSE 3000
ENV PORT 3000 ENV PORT 3000
ENV HOSTNAME "0.0.0.0" ENV HOSTNAME "0.0.0.0"
ENV EXPRESS_PUBLIC_API_URL=http://localhost:8000/api ENV EXPRESS_PUBLIC_API_URL=http://localhost:8000/api
ENV KEY_CLOAK_CLIENT_SECRET
CMD ["npm", "run", "dev"] CMD ["npm", "run", "dev"]
#ENV EXPRESS_PUBLIC_API_URL=http://localhost:8000/api #ENV EXPRESS_PUBLIC_API_URL=http://localhost:8000/api
......
...@@ -15,10 +15,13 @@ export const authOptions = { ...@@ -15,10 +15,13 @@ export const authOptions = {
providers: [ providers: [
// !!! Should be stored in .env file. // !!! Should be stored in .env file.
KeycloakProvider({ KeycloakProvider({
clientId: 'fdo-manager-webui', //clientId: 'fdo-manager-webui',
clientSecret: 'ay7l6jhECSohAZsEp6HYOaoXdARMQCei', clientId: 'gwdg-fdoman-test',
issuer: 'http://localhost:8000/auth/realms/fdo-manager', //clientSecret: 'ay7l6jhECSohAZsEp6HYOaoXdARMQCei',
authorization: { params: { scope: 'openid profile' } }, clientSecret: process.env.KEY_CLOAK_CLIENT_SECRET,
// issuer: 'http://localhost:8000/auth/realms/fdo-manager',
issuer: 'https://keycloak.sso.gwdg.de/auth/realms/academiccloud',
//authorization: { params: { scope: 'openid profile email' } },
profile (profile) { profile (profile) {
console.log('### profile', profile, '### ### ###') console.log('### profile', profile, '### ### ###')
return { return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment