Skip to content

Commit

Permalink
Aggiunta possibilita' di personalizzare il campo da dove leggere il t…
Browse files Browse the repository at this point in the history
…oken oauth2.
  • Loading branch information
pintorig committed Dec 7, 2023
1 parent 586587c commit 0c0f1ca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ it.govpay.backoffice.gui.oauth2.tokenurl=
it.govpay.backoffice.gui.oauth2.codechallengemethod=
it.govpay.backoffice.gui.oauth2.scope=
it.govpay.backoffice.gui.oauth2.responsetype=
it.govpay.backoffice.gui.oauth2.tokenkey=
it.govpay.backoffice.gui.oauth2.boxtitle=
it.govpay.backoffice.gui.oauth2.buttonlabel=

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/filters/template.filter.properties
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ it.govpay.backoffice.gui.oauth2.tokenurl=
it.govpay.backoffice.gui.oauth2.codechallengemethod=
it.govpay.backoffice.gui.oauth2.scope=
it.govpay.backoffice.gui.oauth2.responsetype=
it.govpay.backoffice.gui.oauth2.tokenkey=
it.govpay.backoffice.gui.oauth2.boxtitle=
it.govpay.backoffice.gui.oauth2.buttonlabel=

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class AuthViewComponent implements OnInit {
.subscribe(
(response: any) => {
this._clearStorage();
window.localStorage.setItem(UtilService.STORAGE_VAR.TOKEN, response.access_token);
window.localStorage.setItem(UtilService.STORAGE_VAR.TOKEN, response[this.OAUTH2Config.TOKEN_KEY]);
this._isLoading = false;
this.router.navigate(['/dashboard']);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
CODE_CHALLENGE_METHOD: 'S256',
SCOPE: 'profile',
RESPONSE_TYPE: 'code',
TOKEN_KEY: 'access_token',
BOX_TITLE: 'Autenticazione OAUTH2',
BUTTON_LABEL: 'Accedi'
},
Expand Down
1 change: 1 addition & 0 deletions wars/web-console/src/main/webapp/assets/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
CODE_CHALLENGE_METHOD: '${it.govpay.backoffice.gui.oauth2.codechallengemethod}',
SCOPE: '${it.govpay.backoffice.gui.oauth2.scope}',
RESPONSE_TYPE: '${it.govpay.backoffice.gui.oauth2.responsetype}',
TOKEN_KEY: '${it.govpay.backoffice.gui.oauth2.tokenkey}',
BOX_TITLE: '${it.govpay.backoffice.gui.oauth2.boxtitle}',
BUTTON_LABEL: '${it.govpay.backoffice.gui.oauth2.buttonlabel}'
},
Expand Down

0 comments on commit 0c0f1ca

Please sign in to comment.