IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Does the ibm-verify-sdk support PKCE?

    Posted 03/16/22 10:57 PM
    Does the IBM Security Verify javascript SDK (click here) support PKCE? And if so, are there any code examples that I can share with my clients on ISVaaS?

    ------------------------------
    Timothy
    ------------------------------


  • 2.  RE: Does the ibm-verify-sdk support PKCE?

    Posted 03/17/22 09:24 AM
    Hi Timothy,

    The JavaScript SDK does not support PKCE. If you would like to see this added, please submit it here.

    ------------------------------
    Carsten Hagemann
    ------------------------------



  • 3.  RE: Does the ibm-verify-sdk support PKCE?

    Posted 03/17/22 10:22 AM
    Thanks, Carsten.

    I was able to implement it by manually developing the redirects in my SPA. Since the SPA I'm currently building is based on the IBM Carbon Design System, I will at some point do a blog post on our website, and post a link to it here for others to see.

    ------------------------------
    Timothy
    ------------------------------



  • 4.  RE: Does the ibm-verify-sdk support PKCE?

    Posted 03/17/22 10:59 AM
      |   view attached
    Hi Timothy,

    I created a simple OAuth 2.0 test app that runs the Authorization Code flow with PKCE.  It's written using NodeJS Express.  It uses direct REST calls (with axios) since, as pointed out, the SDK doesn't support PKCE.

    To use this, unpack the zip file, copy dotenv.sample to .env and complete for your tenant. Run "npm install" and then "npm start".
    The web server listens on localhost:3000.

    This is just my test code - I'm sure it's not particularly secure or suitable for any production use - but perhaps someone will find it instructive.

    Cheers... Jon.

    ------------------------------
    Jon Harry
    Consulting IT Security Specialist
    IBM
    ------------------------------

    Attachment(s)

    zip
    authcode-pkce.zip   10 KB 1 version