@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.2.0-dev.
|
|
1
|
+
{"version":"1.2.0-dev.2899998274", "build":"2899998274", "date":"01/10/2026"}
|
|
@@ -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
|
-
|
|
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
|
}
|