Update js adapter adoc to align w new proxy guide. (#1448)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
parent
044945bed4
commit
3263be49de
1 changed files with 5 additions and 3 deletions
|
@ -3,11 +3,13 @@
|
||||||
|
|
||||||
{project_name} comes with a client-side JavaScript library that can be used to secure HTML5/JavaScript applications. The JavaScript adapter has built-in support for Cordova applications.
|
{project_name} comes with a client-side JavaScript library that can be used to secure HTML5/JavaScript applications. The JavaScript adapter has built-in support for Cordova applications.
|
||||||
|
|
||||||
The library can be retrieved directly from the {project_name} server at `{kc_js_path}/keycloak.js` and is also distributed as a ZIP archive.
|
A good practice is to include the JavaScript adapter in your application using a package manager like NPM or Yarn. The `keycloak-js` package is available on the following locations:
|
||||||
|
|
||||||
A best practice is to load the JavaScript adapter directly from {project_name} Server as it will automatically be updated when you upgrade the server. If you copy the adapter to your web application instead, make sure you upgrade the adapter only after you have upgraded the server.
|
* NPM: https://www.npmjs.com/package/keycloak-js
|
||||||
|
* Yarn: https://yarnpkg.com/package/keycloak-js
|
||||||
|
|
||||||
|
Alternatively, the library can be retrieved directly from the {project_name} server at `{kc_js_path}/keycloak.js` and is also distributed as a ZIP archive.
|
||||||
|
|
||||||
NOTE: You can also download package from npm: https://www.npmjs.com/package/keycloak-js
|
|
||||||
|
|
||||||
One important thing to note about using client-side applications is that the client has to be a public client as there is no secure way to store client
|
One important thing to note about using client-side applications is that the client has to be a public client as there is no secure way to store client
|
||||||
credentials in a client-side application. This makes it very important to make sure the redirect URIs you have configured for the client are correct and as specific as possible.
|
credentials in a client-side application. This makes it very important to make sure the redirect URIs you have configured for the client are correct and as specific as possible.
|
||||||
|
|
Loading…
Reference in a new issue