piral-oidc 0.15.0-alpha.3809 → 0.15.0-alpha.3933

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PiralPlugin } from 'piral-core';
2
- import { PiralOidcApi, OidcClient } from './types';
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<PiralOidcApi>;
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 PiralOidcApi {
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 PiralOidcApi {
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 { PiralOidcApi, OidcClient } from './types';
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<PiralOidcApi>;
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 PiralOidcApi {
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 PiralOidcApi {
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.3809",
3
+ "version": "0.15.0-alpha.3933",
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.3809"
52
+ "piral-core": "0.15.0-alpha.3933"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "piral-core": "0.14.x"
56
56
  },
57
- "gitHead": "e26067cdcbbe90ff72d1d0815929655c05126e3a"
57
+ "gitHead": "520a272d09f02543153f1d8b2ae23a3ae10acd6f"
58
58
  }
package/src/create.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { PiralPlugin } from 'piral-core';
2
- import { PiralOidcApi, OidcClient } from './types';
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<PiralOidcApi> {
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 PiralOidcApi {
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 PiralOidcApi {}
215
+ interface PiletCustomApi extends PiletOidcApi {}
216
216
  }
217
217
 
218
218
  /**