Skip to content
Snippets Groups Projects
Unverified Commit a3d77fed authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Update auth documentation

parent 50fac13e
No related branches found
No related tags found
No related merge requests found
Pipeline #45689 passed
...@@ -15,6 +15,17 @@ npm i @dbp-toolkit/auth ...@@ -15,6 +15,17 @@ npm i @dbp-toolkit/auth
<script type="module" src="node_modules/@dbp-toolkit/auth/dist/dbp-auth.js"></script> <script type="module" src="node_modules/@dbp-toolkit/auth/dist/dbp-auth.js"></script>
``` ```
Or directly via CDN:
```html
<dbp-auth-keycloak url="https://auth.tugraz.at/auth" realm="tugraz" client-id="some-id"></dbp-auth-keycloak>
<script type="module" src="https://unpkg.com/@dbp-toolkit/auth@0.2.2/dist/dbp-auth.js"></script>
```
You need Keycloak to be in place to make use of the auth component.
Best take a look on examples like [index.html](https://gitlab.tugraz.at/dbp/esign/signature/-/blob/master/examples/dbp-signature/index.html)
for more explanation.
### Attributes ### Attributes
- `lang` (optional, default: `de`): set to `de` or `en` for German or English - `lang` (optional, default: `de`): set to `de` or `en` for German or English
......
{ {
"name": "@dbp-toolkit/auth", "name": "@dbp-toolkit/auth",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/auth", "homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/auth",
"version": "0.2.2", "version": "0.2.3",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"repository": { "repository": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment