After the popup closes the console prints out the following error and it will not redirect:
bluebird.js?f684:1564 Warning: a promise was rejected with a non-error: [object Object] at eval (webpack-internal:///./node_modules/aurelia-auth/dist/commonjs/popup.js:123:11).
popup,js line 123:
reject({
data: 'Problem poll popup'
});
Log-in-component.ts authenticate code:
public authenticate()
{
return this.auth.authenticate('identSrv', true, null)
Using chrome developer tools i do see in the application page dat aurelia_token, aurelia_id_token, identSrv_nonce and identSrv have values so i assume the login did succeed.
issue #2
when trying to manually go to the api after the login i somehow get a 401 unauthorized:
aurelia-fetch-client.js?a909:287 GET http://localhost:5001/Identity 401 (Unauthorized)
(anonymous) @ aurelia-fetch-client.js?a909:287
tryCatcher @ bluebird.js?f684:5276
bluebird.js?f684:1564 Warning: a promise was rejected with a non-error: [object Response]
Looking at how the example is implemented, and my project, the redirect url ports and clientname are the only difference.
In the example i see to identity requests are being made:
Hi, I have been working on a aurelia with webpack implementation for aurelia-auth so i can use it within projects but found two things that did not work. I took https://github.com/paulvanbladel/aurelia-identityserver-aspnetcore from @paulvanbladel as a example.
popup,js line 123:
Log-in-component.ts authenticate code:
Using chrome developer tools i do see in the application page dat aurelia_token, aurelia_id_token, identSrv_nonce and identSrv have values so i assume the login did succeed.
Looking at how the example is implemented, and my project, the redirect url ports and clientname are the only difference. In the example i see to identity requests are being made:
Looking at my implementation, which in code matches the fetch call that the example has, i only see one:
My auth-config.ts:
client config within my identityserver4 Config.cs:
package.json from the aurelia client:
Kind regards,
Walter