@geogirafe/lib-geoportal 1.2.0-dev.2897830140 → 1.2.0-dev.2899998274

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.2.0-dev.2897830140",
8
+ "version": "1.2.0-dev.2899998274",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -1 +1 @@
1
- {"version":"1.2.0-dev.2897830140", "build":"2897830140", "date":"30/09/2026"}
1
+ {"version":"1.2.0-dev.2899998274", "build":"2899998274", "date":"01/10/2026"}
@@ -11,6 +11,7 @@ export default class AuthManager extends GirafeSingleton {
11
11
  private initializeOAuth;
12
12
  private initializeGmfAuth;
13
13
  private loginStateChanged;
14
+ private handleLoggedOut;
14
15
  private tokensChanged;
15
16
  login(): Promise<void>;
16
17
  private silentLogin;
@@ -99,9 +99,7 @@ export default class AuthManager extends GirafeSingleton {
99
99
  this.issuerManager.finalizeLoginWorkflow();
100
100
  }
101
101
  else if (this.state.oauth.status === 'loggedOut') {
102
- // Get the anonymous rights
103
- await this.gmfManager.getAnonymousUserInfo();
104
- this.issuerManager.finalizeLoginWorkflow();
102
+ await this.handleLoggedOut();
105
103
  }
106
104
  else if (this.state.oauth.status === 'loginFailed') {
107
105
  this.issuerManager.handleErrorFromIssuer();
@@ -112,6 +110,17 @@ export default class AuthManager extends GirafeSingleton {
112
110
  throw error;
113
111
  }
114
112
  }
113
+ async handleLoggedOut() {
114
+ try {
115
+ // Get the anonymous rights
116
+ await this.gmfManager.getAnonymousUserInfo();
117
+ }
118
+ catch (error) {
119
+ // The anonymous rights could not be loaded
120
+ this.context.errorManager.pushMessage('no-anonymous-rights', 'The default anonymous rights could not be loaded', 'warning');
121
+ }
122
+ this.issuerManager.finalizeLoginWorkflow();
123
+ }
115
124
  async tokensChanged() {
116
125
  await this.serviceWorkerHelper.sendMessageToServiceWorker({ access_token: this.state.oauth.tokens?.access_token });
117
126
  }