-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tryLoginCodeFlow with HashLocationStrategy #594
Comments
This is a ugly fix:
In this file: https://github.com/manfredsteyer/angular-oauth2-oidc/blob/master/projects/lib/src/oauth-service.ts |
Thx for sharing! But your issue is really rather hard to follow. Could you please elaborate, (is it a bug? a question? could you create a minimal repro? what is the expected vs actual outcome after a set of steps to reproduce?). |
Hi @jeroenheijmans, i have edited bug description and fix comment, i hope now it's more comprensible! |
Thx for this info. According to the specs, code flow transports the code in the querystring. However, there is this additonal spec, that allows us to vary the the response_mode to hash: https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html I guess, we should look into it for the next version. |
Btw: Could be a nice PR ... |
@jeroenheijmans With all due respect, but I consider this a bug, and not a feature request. This is an oidc library for angular applications, and while not being the default, angular provides the hash location strategy out of the box and it is commonly used. So every developer of an angular lib should be very aware that query strings in an angular application can come after a hash. +++ A more angular-like approach would be to have the |
Something has to be changed in a PR to make a specific scenario work, I'm not too fussed whether we label it a 'bug' or a 'feature' 😄 - I've changed the label. |
Hehe, I mean, there is a claim on the readme stating that its tested with hash location strategy ;) |
Hah fair point :) I think the readme is from some time ago, and the Code Flow was integrated via community-provided PRs that omitted this part. Would be nice if you could add a PR. (Note that while I try to keep an eye on GH issues, it's Manfred who typically takes some time every few months to merge PRs and create a new release. So could take a bit before anything gets integrated.) |
I will ping Manfred. Hope he can get a bugfix release out a tad faster ;) |
The screen shows like this line of code
this.parseQueryString(window.location.search)
can't work with HashLocationStrategy because query string is insidewindows.location.hash
rather thanwindow.location.search
.Thanks you for this nice lib!
The text was updated successfully, but these errors were encountered: