@deephaven/auth-plugins 0.33.1-auth-plugins.25 → 0.34.1-relative-links.24
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/AuthPlugin.d.ts +5 -2
- package/dist/AuthPlugin.d.ts.map +1 -1
- package/dist/AuthPlugin.js +4 -1
- package/dist/AuthPlugin.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/AuthPlugin.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CoreClient } from '@deephaven/jsapi-types';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Map from auth config keys to their values
|
|
5
|
+
* E.g. Map { AuthHandlers → "io.deephaven.auth.AnonymousAuthenticationHandler" }
|
|
6
|
+
*/
|
|
4
7
|
export type AuthConfigMap = Map<string, string>;
|
|
5
8
|
/**
|
|
6
9
|
* Props for the auth plugin component to render
|
|
7
10
|
*/
|
|
8
11
|
export type AuthPluginProps = {
|
|
9
12
|
/** Map from config keys to their values */
|
|
10
|
-
authConfigValues:
|
|
13
|
+
authConfigValues: AuthConfigMap;
|
|
11
14
|
/** Client to check auth configuration on */
|
|
12
15
|
client: CoreClient;
|
|
13
16
|
/** Called when authentication is sucessful */
|
package/dist/AuthPlugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthPlugin.d.ts","sourceRoot":"","sources":["../src/AuthPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"AuthPlugin.d.ts","sourceRoot":"","sources":["../src/AuthPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,2CAA2C;IAC3C,gBAAgB,EAAE,aAAa,CAAC;IAEhC,4CAA4C;IAC5C,MAAM,EAAE,UAAU,CAAC;IAEnB,8CAA8C;IAC9C,SAAS,IAAI,IAAI,CAAC;IAElB,uCAAuC;IACvC,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC;AAEhF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,WAAW,EAAE,6BAA6B,CAAC;CAC5C,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,IAAI,UAAU,CAOnE"}
|
package/dist/AuthPlugin.js
CHANGED
package/dist/AuthPlugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthPlugin.js","names":["isAuthPlugin","plugin","authPlugin","Component","undefined","isAvailable"],"sources":["../src/AuthPlugin.ts"],"sourcesContent":["import React from 'react';\nimport { CoreClient } from '@deephaven/jsapi-types';\n\n
|
|
1
|
+
{"version":3,"file":"AuthPlugin.js","names":["isAuthPlugin","plugin","authPlugin","Component","undefined","isAvailable"],"sources":["../src/AuthPlugin.ts"],"sourcesContent":["import React from 'react';\nimport { CoreClient } from '@deephaven/jsapi-types';\n\n/**\n * Map from auth config keys to their values\n * E.g. Map { AuthHandlers → \"io.deephaven.auth.AnonymousAuthenticationHandler\" }\n */\nexport type AuthConfigMap = Map<string, string>;\n\n/**\n * Props for the auth plugin component to render\n */\nexport type AuthPluginProps = {\n /** Map from config keys to their values */\n authConfigValues: AuthConfigMap;\n\n /** Client to check auth configuration on */\n client: CoreClient;\n\n /** Called when authentication is sucessful */\n onSuccess(): void;\n\n /** Called when authentication fails */\n onFailure(error: unknown): void;\n};\n\nexport type AuthPluginComponent = React.FunctionComponent<AuthPluginProps>;\n\n/**\n * Whether the auth plugin is available given the current configuration\n */\nexport type AuthPluginIsAvailableFunction = (authHandlers: string[]) => boolean;\n\nexport type AuthPlugin = {\n Component: AuthPluginComponent;\n isAvailable: AuthPluginIsAvailableFunction;\n};\n\nexport function isAuthPlugin(plugin?: unknown): plugin is AuthPlugin {\n if (plugin == null) return false;\n const authPlugin = plugin as AuthPlugin;\n return (\n authPlugin.Component !== undefined &&\n typeof authPlugin.isAvailable === 'function'\n );\n}\n"],"mappings":"AAGA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAiBA;AACA;AACA;;AAQA,OAAO,SAASA,YAAY,CAACC,MAAgB,EAAwB;EACnE,IAAIA,MAAM,IAAI,IAAI,EAAE,OAAO,KAAK;EAChC,IAAMC,UAAU,GAAGD,MAAoB;EACvC,OACEC,UAAU,CAACC,SAAS,KAAKC,SAAS,IAClC,OAAOF,UAAU,CAACG,WAAW,KAAK,UAAU;AAEhD"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AuthPlugin.js";
|
|
2
|
+
export * from "./AuthHandlerTypes.js";
|
|
2
3
|
export { default as AuthPluginAnonymous } from "./AuthPluginAnonymous.js";
|
|
3
4
|
export { default as AuthPluginParent } from "./AuthPluginParent.js";
|
|
4
5
|
export { default as AuthPluginPsk } from "./AuthPluginPsk.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","AuthPluginAnonymous","AuthPluginParent","AuthPluginPsk"],"sources":["../src/index.ts"],"sourcesContent":["export * from './AuthPlugin';\nexport { default as AuthPluginAnonymous } from './AuthPluginAnonymous';\nexport { default as AuthPluginParent } from './AuthPluginParent';\nexport { default as AuthPluginPsk } from './AuthPluginPsk';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","AuthPluginAnonymous","AuthPluginParent","AuthPluginPsk"],"sources":["../src/index.ts"],"sourcesContent":["export * from './AuthPlugin';\nexport * from './AuthHandlerTypes';\nexport { default as AuthPluginAnonymous } from './AuthPluginAnonymous';\nexport { default as AuthPluginParent } from './AuthPluginParent';\nexport { default as AuthPluginPsk } from './AuthPluginPsk';\n"],"mappings":";;SAESA,OAAO,IAAIC,mBAAmB;AAAA,SAC9BD,OAAO,IAAIE,gBAAgB;AAAA,SAC3BF,OAAO,IAAIG,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/auth-plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.1-relative-links.24+dc3d7471",
|
|
4
4
|
"description": "Deephaven Auth Plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Deephaven",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@deephaven/components": "^0.
|
|
36
|
-
"@deephaven/jsapi-bootstrap": "^0.
|
|
37
|
-
"@deephaven/jsapi-types": "^0.
|
|
38
|
-
"@deephaven/jsapi-utils": "^0.
|
|
39
|
-
"@deephaven/log": "^0.
|
|
35
|
+
"@deephaven/components": "^0.34.1-relative-links.24+dc3d7471",
|
|
36
|
+
"@deephaven/jsapi-bootstrap": "^0.34.1-relative-links.24+dc3d7471",
|
|
37
|
+
"@deephaven/jsapi-types": "^0.34.1-relative-links.24+dc3d7471",
|
|
38
|
+
"@deephaven/jsapi-utils": "^0.34.1-relative-links.24+dc3d7471",
|
|
39
|
+
"@deephaven/log": "^0.34.1-relative-links.24+dc3d7471"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@deephaven/tsconfig": "^0.
|
|
42
|
+
"@deephaven/tsconfig": "^0.34.1-relative-links.24+dc3d7471",
|
|
43
43
|
"@types/react": "^17.0.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "dc3d747123588c4c692388f0e879a09f46c8952f"
|
|
56
56
|
}
|