/
JS Connector

JS Connector

The OIDC Provider from BankID offers a tiny JavaScript library that can simplify your client-side integration with the authorization endpoint.

This script 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 redirected page or a window popup to appear showing any dialogs relevant for the OIDC session.

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.

<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 request.

Related content

Get started with authentication
Get started with authentication
More like this
Identity Providers
Identity Providers
More like this
Identity Providers
Identity Providers
More like this
Client authentication
Client authentication
More like this
Core concepts
More like this
User experience
User experience
More like this