piral-oidc 0.15.0-alpha.4396 → 0.15.0-beta.4411
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 +3 -3
- package/src/create.test.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-oidc",
|
|
3
|
-
"version": "0.15.0-
|
|
3
|
+
"version": "0.15.0-beta.4411",
|
|
4
4
|
"description": "Plugin to integrate authentication using OpenID connect in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"oidc-client": "^1.10.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"piral-core": "0.15.0-
|
|
69
|
+
"piral-core": "0.15.0-beta.4411"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"piral-core": "0.14.x || 0.15.x"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "4f5faf811d34692b5f2d3042b9fb732fa8d64cb0"
|
|
75
75
|
}
|
package/src/create.test.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createOidcApi } from './create';
|
|
2
|
-
import {
|
|
2
|
+
import { PiletOidcApi } from './types';
|
|
3
3
|
|
|
4
4
|
declare module 'piral-oidc/src/types' {
|
|
5
5
|
interface PiralCustomOidcProfile {
|
|
@@ -33,7 +33,7 @@ describe('Piral-Oidc create module', () => {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
it('api.getAccessToken() should return the client.token()', () => {
|
|
36
|
-
const api = createOidcApi(mock)(context) as
|
|
36
|
+
const api = createOidcApi(mock)(context) as PiletOidcApi;
|
|
37
37
|
expect(api.getAccessToken()).toBe(mockToken);
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -42,7 +42,7 @@ describe('Piral-Oidc create module', () => {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
it('api.getProfile() should return client.account()', async () => {
|
|
45
|
-
const api = createOidcApi(mock)(context) as
|
|
45
|
+
const api = createOidcApi(mock)(context) as PiletOidcApi;
|
|
46
46
|
const profile = await api.getProfile();
|
|
47
47
|
expect(profile).toEqual(mockProfile);
|
|
48
48
|
// This is asserting the custom claims works, otherwise we would get a type error
|