Redirect URL has fragments

968 views
Skip to first unread message

anupambha...@gmail.com

unread,
Jun 29, 2018, 4:59:23 PM6/29/18
to Developer Group for CMS Blue Button API
The redirect URL does not allow fragments and I am not able to authorize the user. Is there any work around to achieve this ? 

Frontend : Angularjs
Backend : NodeJS(waterline sails)


Mark Scrimshire

unread,
Jul 5, 2018, 12:35:13 PM7/5/18
to Developer Group for CMS Blue Button API
The Blue Button 2.0 API Redirect_URI does not accept the Hash (#) as a fragment in the URI. 
The OAuth2.0 specification uses the Hash to send the AccessToken when using the Implicit flow. 
Therefore a Hash fragment in the Redirect_URI would get replaced. You  should look at passing information using a query parameter. 

Some interesting posts about OAuth2.0 and Fragments:

[Thread Safe: OAuth 2 and Fragment encoding.](http://www.thread-safe.com/2014/05/oauth-2-and-fragment-encoding.html)

if you are using Angular you might want to check out the comments here:

particularly the last entry by Sojer23. He suggests a way to add code to the Angular App Manager to alter the handling of the hash for routing.

If you are using the Hash for routing in your Angular app it is probably getting confused with the response from Auth2.0 in the Implicit flow.

- Mark
Reply all
Reply to author
Forward
0 new messages