每当我尝试将angular
传递给身份验证请求参数时,我都无法解决gluu
和ui_locale
中的问题。
实际上,我想将所选语言值从下拉列表传递到授权请求参数;我的请求代码是:
then((response: any) => {
this.configuration = response;
const authRequest = new AuthorizationRequest({
client_id: environment.client_id,
redirect_uri: environment.redirect_uri,
scope: environment.scope,
response_type: AuthorizationRequest.RESPONSE_TYPE_CODE,
state: undefined,
任何人都可以给我任何解决方案吗?
我希望请求应该像这样,并带有另一个参数ui_locale:selectedLanguage
then((response: any) => {
this.configuration = response;
const authRequest = new AuthorizationRequest({
client_id: environment.client_id,
redirect_uri: environment.redirect_uri,
scope: environment.scope,
response_type: AuthorizationRequest.RESPONSE_TYPE_CODE,
state: undefined,
ui_locale:selectedlanguuage
运行应用程序ui_locale后,您可以看到请求参数 click here to see the screenshort