如何将ui_locale从angular传递到身份验证请求?

时间:2020-09-23 05:56:37

标签: angular url append dropdown gluu

每当我尝试将angular传递给身份验证请求参数时,我都无法解决gluuui_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

0 个答案:

没有答案