@inrupt/solid-client-authn-browser 2.2.2 → 2.2.3
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/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/dist/solid-client-authn.bundle.js +6 -6
- package/dist/solid-client-authn.bundle.js.map +1 -1
- package/package.json +4 -4
- package/src/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.spec.ts +3 -0
- package/src/login/oidc/incomingRedirectHandler/AuthCodeRedirectHandler.ts +8 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inrupt/solid-client-authn-browser",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@types/uuid": "^9.0.8"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@inrupt/oidc-client-ext": "^2.2.
|
|
33
|
-
"@inrupt/solid-client-authn-core": "^2.2.
|
|
32
|
+
"@inrupt/oidc-client-ext": "^2.2.3",
|
|
33
|
+
"@inrupt/solid-client-authn-core": "^2.2.3",
|
|
34
34
|
"events": "^3.3.0",
|
|
35
35
|
"jose": "^5.1.3",
|
|
36
36
|
"uuid": "^9.0.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "4222c4ae39d0b160cf664da987e4b2a08b7f4c84"
|
|
42
42
|
}
|
|
@@ -112,6 +112,7 @@ const mockTokenEndpointBearerResponse =
|
|
|
112
112
|
accessToken: mockAccessTokenBearer(),
|
|
113
113
|
idToken: mockIdToken(),
|
|
114
114
|
webId: mockWebId(),
|
|
115
|
+
clientId: "some client",
|
|
115
116
|
expiresIn: MOCK_EXPIRE_TIME,
|
|
116
117
|
refreshToken: "some refresh token",
|
|
117
118
|
};
|
|
@@ -123,6 +124,7 @@ const mockTokenEndpointDpopResponse =
|
|
|
123
124
|
accessToken: JSON.stringify(mockAccessTokenDpop()),
|
|
124
125
|
idToken: mockIdToken(),
|
|
125
126
|
webId: mockWebId(),
|
|
127
|
+
clientId: "some client",
|
|
126
128
|
dpopKey: {
|
|
127
129
|
privateKey: (await importJWK(mockJwk())) as KeyObject,
|
|
128
130
|
// Note that here for convenience the private key is also used as public key.
|
|
@@ -531,6 +533,7 @@ describe("AuthCodeRedirectHandler", () => {
|
|
|
531
533
|
accessToken: mockAccessTokenBearer(),
|
|
532
534
|
idToken: mockIdToken(),
|
|
533
535
|
webId: mockWebId(),
|
|
536
|
+
clientId: "some client",
|
|
534
537
|
// no expiresIn
|
|
535
538
|
});
|
|
536
539
|
|
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
buildAuthenticatedFetch,
|
|
39
39
|
loadOidcContextFromStorage,
|
|
40
40
|
maybeBuildRpInitiatedLogout,
|
|
41
|
+
saveSessionInfoToStorage,
|
|
41
42
|
} from "@inrupt/solid-client-authn-core";
|
|
42
43
|
import { getTokens } from "@inrupt/oidc-client-ext";
|
|
43
44
|
import type { EventEmitter } from "events";
|
|
@@ -166,13 +167,14 @@ export class AuthCodeRedirectHandler implements IIncomingRedirectHandler {
|
|
|
166
167
|
expiresIn: tokens.expiresIn,
|
|
167
168
|
});
|
|
168
169
|
|
|
169
|
-
await
|
|
170
|
+
await saveSessionInfoToStorage(
|
|
171
|
+
this.storageUtility,
|
|
170
172
|
storedSessionId,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
tokens.webId,
|
|
174
|
+
tokens.clientId,
|
|
175
|
+
"true",
|
|
176
|
+
undefined,
|
|
177
|
+
true,
|
|
176
178
|
);
|
|
177
179
|
|
|
178
180
|
const sessionInfo = await this.sessionInfoManager.get(storedSessionId);
|