@geogirafe/lib-geoportal 1.1.0-dev.2623495582 → 1.1.0-dev.2625220907

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.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "GeoGirafe PSC",
6
6
  "url": "https://doc.geogirafe.org"
7
7
  },
8
- "version": "1.1.0-dev.2623495582",
8
+ "version": "1.1.0-dev.2625220907",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -1 +1 @@
1
- {"version":"1.1.0-dev.2623495582", "build":"2623495582", "date":"23/06/2026"}
1
+ {"version":"1.1.0-dev.2625220907", "build":"2625220907", "date":"24/06/2026"}
@@ -88,7 +88,16 @@ export default class OpenIdConnectManager extends AbstractConnectManager {
88
88
  authorizationUrl.searchParams.set('code_challenge', code_challenge);
89
89
  authorizationUrl.searchParams.set('code_challenge_method', this.issuerConfig.codeChallengeMethod);
90
90
  if (silent) {
91
- authorizationUrl.searchParams.set('prompt', 'none');
91
+ // Add custom parameters for silent login
92
+ for (const [key, value] of Object.entries(this.issuerConfig.customSilentLoginParams)) {
93
+ authorizationUrl.searchParams.set(key, value);
94
+ }
95
+ }
96
+ else {
97
+ // Add custom parameters for login
98
+ for (const [key, value] of Object.entries(this.issuerConfig.customLoginParams)) {
99
+ authorizationUrl.searchParams.set(key, value);
100
+ }
92
101
  }
93
102
  return authorizationUrl;
94
103
  }
@@ -216,6 +216,12 @@ declare class GirafeConfig {
216
216
  audience: string[];
217
217
  audienceExcludedPaths: string[];
218
218
  alwaysSendCookies: boolean;
219
+ customSilentLoginParams: {
220
+ [key: string]: string;
221
+ };
222
+ customLoginParams: {
223
+ [key: string]: string;
224
+ };
219
225
  };
220
226
  geomapfish: {
221
227
  userInfoUrl: string;
@@ -408,7 +408,9 @@ class GirafeConfig {
408
408
  checkSessionOnLoad: config.oauth.issuer.checkSessionOnLoad ?? false,
409
409
  audience: config.oauth.issuer.audience,
410
410
  audienceExcludedPaths: config.oauth.issuer.audienceExcludedPaths ?? [],
411
- alwaysSendCookies: config.oauth.issuer.alwaysSendCookies ?? false
411
+ alwaysSendCookies: config.oauth.issuer.alwaysSendCookies ?? false,
412
+ customSilentLoginParams: config.oauth.issuer.customSilentLoginParams ?? {},
413
+ customLoginParams: config.oauth.issuer.customLoginParams ?? {}
412
414
  };
413
415
  const geomapfishConfig = {
414
416
  userInfoUrl: config.oauth.geomapfish.userInfoUrl,