OpenID Connect Client Library for JavaScript/SPA-style Applications

In addition to our native library – Brock successfully certified his JavaScript library with the OpenID Foundation.

oidc-client-js is by far the most easy and elegant way I have seen so far for integrating OpenID Connect and OAuth 2 client functionality into JavaScript – highly recommended!

See here for a step-by-step tutorial on how to use it.

This entry was posted in IdentityModel, OAuth, OpenID Connect, Uncategorized. Bookmark the permalink.

5 Responses to OpenID Connect Client Library for JavaScript/SPA-style Applications

  1. Paul says:

    This example oidc-client-js code is very helpful as it is simple and to the point. Would it be possible to have a version of this that worked with Reference Tokens? When I change my server code Implicit flow Client() to use AccessTokenType=AccessTokenType.Reference my javascript client code no longer works as it seems it no longer be able to authenticate to my web apis.

    • I don’t think that’s the case since the client is token agnostic – but plesase open an issue on the github repo to make sure that this is not a bug.

      • Paul says:

        Ahh apologies – it is working now; I was another casualty of mismatching ApiSecrets
        and ApiSecret. BTW Do any of the IdentityServer4.Samples have a reference token example? Want to verify not just working but working the right way. Thank you for everything.

  2. The samples repo has a the clients sample. Any client can use both token types.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s