piral-oidc 0.14.9-beta.3522 → 0.15.0-alpha.3540
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/README.md +12 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -103,15 +103,19 @@ import { setupOidcClient } from 'piral-oidc';
|
|
|
103
103
|
|
|
104
104
|
export const client = setupOidcClient({ ... });
|
|
105
105
|
|
|
106
|
-
// app.
|
|
106
|
+
// app.tsx
|
|
107
|
+
import * as React from 'react';
|
|
107
108
|
import { createOidcApi } from 'piral-oidc';
|
|
109
|
+
import { createInstance } from 'piral-core';
|
|
108
110
|
import { client } from './oidc';
|
|
111
|
+
import { render } from 'react-dom';
|
|
109
112
|
|
|
110
113
|
export function render() {
|
|
111
|
-
|
|
114
|
+
const instance = createInstance({
|
|
112
115
|
// ...
|
|
113
116
|
plugins: [createOidcApi(client)],
|
|
114
117
|
});
|
|
118
|
+
render(<Piral instance={instance} />, document.querySelector('#app'));
|
|
115
119
|
}
|
|
116
120
|
|
|
117
121
|
// index.ts
|
|
@@ -151,15 +155,19 @@ export const client = setupOidcClient({
|
|
|
151
155
|
postLogoutUrl: location.origin + '/logout'
|
|
152
156
|
});
|
|
153
157
|
|
|
154
|
-
// app.
|
|
158
|
+
// app.tsx
|
|
159
|
+
import * as React from 'react';
|
|
155
160
|
import { createOidcApi } from 'piral-oidc';
|
|
161
|
+
import { createInstance } from 'piral-core';
|
|
156
162
|
import { client } from './oidc';
|
|
163
|
+
import { render } from 'react-dom';
|
|
157
164
|
|
|
158
165
|
export function render() {
|
|
159
|
-
|
|
166
|
+
const instance = createInstance({
|
|
160
167
|
// ...
|
|
161
168
|
plugins: [createOidcApi(client)],
|
|
162
169
|
});
|
|
170
|
+
render(<Piral instance={instance} />, document.querySelector('#app'));
|
|
163
171
|
}
|
|
164
172
|
|
|
165
173
|
// index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-oidc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-alpha.3540",
|
|
4
4
|
"description": "Plugin to integrate authentication using OpenID connect in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"oidc-client": "^1.10.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"piral-core": "0.
|
|
49
|
+
"piral-core": "0.15.0-alpha.3540"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"piral-core": "0.14.x"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "151470c2e2e9f8616949acde653617fc0f6d1f8c"
|
|
55
55
|
}
|