Angular-auth-oidc-client: try use setCustomRequestParameters({ 'ui_locales': culture});

Created on 11 Apr 2019  路  7Comments  路  Source: damienbod/angular-auth-oidc-client

Hi when i try use setCustomRequestParameters({ 'ui_locales': culture}); i don't see in fiddler my ui_locales param (any custom params )
var culture = this.langHelper.getLangProperty(); this.oidcSecurityService.setCustomRequestParameters({ 'ui_locales': culture}); this.oidcSecurityService.authorize();

image

investigate

Most helpful comment

@rekosko , these are the syntax' that works in our implementation:

const parameters: any = { prompt: "login" }; this.oidcSecurityService.setCustomRequestParameters(parameters); this.oidcSecurityService.authorize();

And:
this.oidcSecurityService.setCustomRequestParameters({ prompt: "login" }); this.oidcSecurityService.authorize();

We are using the latest version 10.0.10.
You should be able to replace the prompt parameter with whatever you want to add to the request.

I hope this helps.

All 7 comments

I do as in the documentation
image

this is get /connect/authorize http://prntscr.com/nc43j4

@andreyshiryaev I checked this, and it is getting sent in my examples. Do you still have this problem, or could you post your authorize request?

hi, i am sorry for long answer this task is low priority ....
yes i have problem yet ,
i use
"angular-auth-oidc-client": "^10.0.2",
and after this.oidcSecurityService.authorize(); i can show in output window msvs (or fiddler) request
without parameter ui_locales
http://prntscr.com/od02l4

@andreyshiryaev
You need to create a named object instead of an anonymous one - as the documentation states:
const params: any = { ui_locales: "en" };
this.oidcSecurity.setCustomRequestParameters(params);

Hope this helps.

@nybroe are you sure? I'm trying different variants and I'm still unable to use this setCustomRequestParameters correctly.

@damienbod any help?

@rekosko , these are the syntax' that works in our implementation:

const parameters: any = { prompt: "login" }; this.oidcSecurityService.setCustomRequestParameters(parameters); this.oidcSecurityService.authorize();

And:
this.oidcSecurityService.setCustomRequestParameters({ prompt: "login" }); this.oidcSecurityService.authorize();

We are using the latest version 10.0.10.
You should be able to replace the prompt parameter with whatever you want to add to the request.

I hope this helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jhossy picture jhossy  路  4Comments

cgatian picture cgatian  路  4Comments

Expelz picture Expelz  路  4Comments

vicver82 picture vicver82  路  4Comments

sdev95 picture sdev95  路  3Comments