One of the challenges with adal.js and its architecture is going to be bookmarking URLs. If you open a browser into the application and do not start out at the root URL you're not going to have the token and your application is going to behave in a sickly way, unable to authenticate to get across a guard and trapped at some route meant for blocking the unauthenticated. This means I have to write something that looks for the token and then goes and gets it if it is missing. Unfortunately, the goes-and-gets-it part of that means a rerouting back to the root URL. I don't see (yet) how a bookmark is even possible. I recall the mantra of Tim Ash: "Your baby is ugly."
No comments:
Post a Comment