The OIDC Provider from BankID offers a tiny JavaScript library that can simplify your client-side integration with the authorization endpoint.
This script comes with a Javascript API that simplifies integration with the REST API for front-end based OIDC Clients. This API is referred to as the JS Connector (or OIDC Connector) and can be used with any of the supported IDPs. It supports a selection of user experiences. The chosen integration method may cause a window, redirected page or iframe a window popup to appear showing any dialogs relevant for the OIDC session.
See the following sections with further information on how to use the JS Connector with the OIDC Provider from BankID:
Scroll Page Tree | ||||
---|---|---|---|---|
|
Getting started
Load the Connector script for the appropriate environment
Add a script tag to include the Connector on your site. Depending on the environment (current, production etc.) we provide different versions of the script. Find the correct baseURLs here.
Code Block | ||||
---|---|---|---|---|
| ||||
<script src="https://oidc-current.bankidapis.no/js-connect/v2/js/connector.bundle.min.js"></script> |
Read the documentation on GitHub
Find documentation, API reference and examples in the Github repository.
We greatly appreciate feedback so feel free to open an issue or to even submit a pull requestSee also full source code examples on GitHub for use of the JS Connector.