piral-oidc 0.15.0-alpha.3784 → 0.15.0-alpha.3816
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/esm/create.d.ts +2 -2
- package/esm/types.d.ts +2 -2
- package/lib/create.d.ts +2 -2
- package/lib/types.d.ts +2 -2
- package/package.json +3 -3
- package/src/create.ts +2 -2
- package/src/types.ts +2 -2
package/esm/create.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PiralPlugin } from 'piral-core';
|
|
2
|
-
import {
|
|
2
|
+
import { PiletOidcApi, OidcClient } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Creates new Pilet API extensions for the integration of OpenID Connect.
|
|
5
5
|
*/
|
|
6
|
-
export declare function createOidcApi(client: OidcClient): PiralPlugin<
|
|
6
|
+
export declare function createOidcApi(client: OidcClient): PiralPlugin<PiletOidcApi>;
|
package/esm/types.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ export interface OidcClient {
|
|
|
191
191
|
*/
|
|
192
192
|
extendHeaders(req: OidcRequest): void;
|
|
193
193
|
}
|
|
194
|
-
export interface
|
|
194
|
+
export interface PiletOidcApi {
|
|
195
195
|
/**
|
|
196
196
|
* Gets the currently valid access token, if any.
|
|
197
197
|
*/
|
|
@@ -202,7 +202,7 @@ export interface PiralOidcApi {
|
|
|
202
202
|
getProfile(): Promise<OidcProfile>;
|
|
203
203
|
}
|
|
204
204
|
declare module 'piral-core/lib/types/custom' {
|
|
205
|
-
interface PiletCustomApi extends
|
|
205
|
+
interface PiletCustomApi extends PiletOidcApi {
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
/**
|
package/lib/create.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PiralPlugin } from 'piral-core';
|
|
2
|
-
import {
|
|
2
|
+
import { PiletOidcApi, OidcClient } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Creates new Pilet API extensions for the integration of OpenID Connect.
|
|
5
5
|
*/
|
|
6
|
-
export declare function createOidcApi(client: OidcClient): PiralPlugin<
|
|
6
|
+
export declare function createOidcApi(client: OidcClient): PiralPlugin<PiletOidcApi>;
|
package/lib/types.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ export interface OidcClient {
|
|
|
191
191
|
*/
|
|
192
192
|
extendHeaders(req: OidcRequest): void;
|
|
193
193
|
}
|
|
194
|
-
export interface
|
|
194
|
+
export interface PiletOidcApi {
|
|
195
195
|
/**
|
|
196
196
|
* Gets the currently valid access token, if any.
|
|
197
197
|
*/
|
|
@@ -202,7 +202,7 @@ export interface PiralOidcApi {
|
|
|
202
202
|
getProfile(): Promise<OidcProfile>;
|
|
203
203
|
}
|
|
204
204
|
declare module 'piral-core/lib/types/custom' {
|
|
205
|
-
interface PiletCustomApi extends
|
|
205
|
+
interface PiletCustomApi extends PiletOidcApi {
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-oidc",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.3816",
|
|
4
4
|
"description": "Plugin to integrate authentication using OpenID connect in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"oidc-client": "^1.10.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"piral-core": "0.15.0-alpha.
|
|
52
|
+
"piral-core": "0.15.0-alpha.3816"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"piral-core": "0.14.x"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "cfd7ed44c6b73655be56587aeaf774692e0c94ad"
|
|
58
58
|
}
|
package/src/create.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PiralPlugin } from 'piral-core';
|
|
2
|
-
import {
|
|
2
|
+
import { PiletOidcApi, OidcClient } from './types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates new Pilet API extensions for the integration of OpenID Connect.
|
|
6
6
|
*/
|
|
7
|
-
export function createOidcApi(client: OidcClient): PiralPlugin<
|
|
7
|
+
export function createOidcApi(client: OidcClient): PiralPlugin<PiletOidcApi> {
|
|
8
8
|
return (context) => {
|
|
9
9
|
context.on('before-fetch', client.extendHeaders);
|
|
10
10
|
|
package/src/types.ts
CHANGED
|
@@ -199,7 +199,7 @@ export interface OidcClient {
|
|
|
199
199
|
extendHeaders(req: OidcRequest): void;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
export interface
|
|
202
|
+
export interface PiletOidcApi {
|
|
203
203
|
/**
|
|
204
204
|
* Gets the currently valid access token, if any.
|
|
205
205
|
*/
|
|
@@ -212,7 +212,7 @@ export interface PiralOidcApi {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
declare module 'piral-core/lib/types/custom' {
|
|
215
|
-
interface PiletCustomApi extends
|
|
215
|
+
interface PiletCustomApi extends PiletOidcApi {}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/**
|