Skip to content

Commit

Permalink
HELLODATA-1881 - configurable token scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Slawomir Wieczorek committed Jan 13, 2025
1 parent 5fcce20 commit 938eecf
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class AuthConfigService {
redirectUrl: `${environment.authConfig.redirectUrl}/callback`,
postLogoutRedirectUri: environment.authConfig.postLogoutRedirectUri,
clientId: environment.authConfig.clientId,
scope: 'openid profile email',
scope: environment.authConfig.scope,
responseType: 'code',
silentRenew: true,
silentRenewUrl: `${window.location.origin}/silent-renew.html`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface AuthConfig {
clientId: string;
redirectUrl: string;
postLogoutRedirectUri: string;
scope: string;
}

export interface DeploymentConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const environment: Environment = window.environment != undefined ? window
authority: 'http://localhost:38080/realms/hellodata',
redirectUrl: 'http://localhost:4200',
postLogoutRedirectUri: 'http://localhost:4200',
clientId: 'frontend-client'
clientId: 'frontend-client',
scope: 'openid profile email'
},
deploymentEnvironment: {
name: 'DEV',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const environment: Environment = window.environment != undefined ? window
authority: 'http://hellodata-portal-keycloak:8080/realms/hellodata',
redirectUrl: 'http://hellodata-portal-ui:80/',
postLogoutRedirectUri: 'http://hellodata-portal-ui:80/',
clientId: 'frontend-client'
clientId: 'frontend-client',
scope: 'openid profile email'
},
deploymentEnvironment: {
name: 'DEV'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const environment: Environment = window.environment != undefined ? window
authority: '--configure me--',
redirectUrl: '--configure me--',
postLogoutRedirectUri: '--configure me--',
clientId: '--configure me--'
clientId: '--configure me--',
scope: 'openid profile email'
},
deploymentEnvironment: {
name: 'PROD'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const environment: Environment = window.environment != undefined ? window
authority: '',
redirectUrl: '',
postLogoutRedirectUri: '',
clientId: ''
clientId: '',
scope: 'openid profile email'
},
deploymentEnvironment: {
showEnvironment: true,
Expand Down

0 comments on commit 938eecf

Please sign in to comment.