Skip to content

$location.hash() parsing not working with Okta #143

Open
@jayhartley

Description

@jayhartley

I've been using oauth-ng with an early release of Okta's Open ID Connect support. For whatever reason, their fragment on redirect (Implicit flow) starts with a forward slash. (e.g. https:// myserver.com/myOnePageApp.html#/access_token=eyJ...&id_token=eyJ...)

All I had to do to make it work was a small change to the regex in AccessToken. I've attached a patch file with the fix and some unit tests:
support_okta.patch.txt

You'll note I also had to make a couple of changes to the package.json. Updated the grunt-contrib-imagemin and karma-phantomjs-launcher versions to the latest. Those were required to get npm install and karma testing, respectively, to work on my Mac (OSX 10.11). They are not necessarily required for the patch, but I thought I'd bring them to your attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions