@the-liberators/ngx-scrumteamsurvey-tools 2.3.133 → 2.3.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1912,19 +1912,18 @@ class AuthService {
1912
1912
  showDebugInformation: authConfig.debug,
1913
1913
  strictDiscoveryDocumentValidation: true,
1914
1914
  postLogoutRedirectUri: window.location.origin + '/',
1915
- requireHttps: authConfig.requireHttps,
1916
- customQueryParams: {
1917
- audience: authConfig.audience
1918
- }
1915
+ requireHttps: authConfig.requireHttps
1919
1916
  });
1920
1917
  await this.oauth.loadDiscoveryDocumentAndTryLogin();
1921
1918
  this.syncAuthState();
1922
1919
  }
1923
1920
  async login(options) {
1921
+ var authConfig = this.config.get();
1924
1922
  this.oauth.customQueryParams = {
1925
1923
  ...(options.prompt && { prompt: options.prompt }),
1926
1924
  ...(options.max_age !== undefined && { max_age: options.max_age }),
1927
1925
  ...(options.connectionId && { connection: options.connectionId }),
1926
+ audience: authConfig.audience
1928
1927
  };
1929
1928
  console.log("starting login flow");
1930
1929
  this.oauth.initCodeFlow();
@@ -1935,6 +1934,7 @@ class AuthService {
1935
1934
  ...(options.prompt && { prompt: options.prompt }),
1936
1935
  ...(options.max_age !== undefined && { max_age: options.max_age }),
1937
1936
  ...(options.connectionId && { connection: options.connectionId }),
1937
+ ...(options.connectionId && { kc_idp_hint: options.connectionId }),
1938
1938
  audience: authConfig.audience
1939
1939
  };
1940
1940
  return this.oauth.initLoginFlowInPopup();