I’ve added Azure Active Directory Library (ADAL) to an Aurelia CLI 0.31.3 project and I appear to be out of my element.
The issues that I’m running into are:
- Accessing the “Reports” page for the first time allows you to log in. When it returns from the Azure AD sign-in, the Aurelia app reloads twice.
- Clicking “Log In” when on the “Home” page allows you to log in. When it returns from the Azure AD sign-in, the URL contains “/token_id=XXXX” and the Aurelia router errors stating “Route not found”.
Some notes on the project:
- There are only two views. “Home” does not require authentication. “Reports” does.
- ./src/app.ts , ./src/authorizeStep.ts , and ./src/sessionState.ts , should be the only places any authentication code exists.
Any insight as to how to resolve these would be greatly appreciated!