You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of my Angular applications I implemented AuthCode flow using angualr-oauth2-oidc version 10. I had a situation to disable nonce checks, so I have upgraded the package to 12.1.0 version, since we have disableNonceCheck property in the LoginOptions class.
After updating the package and set the disableNonceCheck = true, the application is not redirecting to Identity Provider login page. Below is the code I have used:
To make work I made a small tweak in angular-oauth2-oidc.js file in following location "node_modules\angular-oauth2-oidc\fesm2015". On tryLoginCodeFlow method
I have closed curly braces for nonce check(!options.disableNonceCheck) before this.storeSessionState(sessionState) line, once this changes done it started working.
We have option of disabling Nonce check, but its stopping the website to load.
Please let me know thoughts on this.
The text was updated successfully, but these errors were encountered:
In fact i'm facing the same issue right now, i need also to disable Nonce check for a specific environment and it makes the code flow to an error. I tried with 12.1.0 and with latest version too.
But in fact, as pointed by @nishyanthp, when the option disableNonceCheck is true, the only possible exit in code function tryLoginCodeFlow is the Promise.reject().
Promise.reject() was not present in version 12.1.0, but issue is the same as the flow is interrupted in both cases.
In one of my Angular applications I implemented AuthCode flow using angualr-oauth2-oidc version 10. I had a situation to disable nonce checks, so I have upgraded the package to 12.1.0 version, since we have
disableNonceCheck
property in theLoginOptions
class.After updating the package and set the
disableNonceCheck = true
, the application is not redirecting to Identity Provider login page. Below is the code I have used:To make work I made a small tweak in angular-oauth2-oidc.js file in following location
"node_modules\angular-oauth2-oidc\fesm2015"
. On tryLoginCodeFlow methodOriginal Code:
Updated Code:
I have closed curly braces for nonce check(!options.disableNonceCheck) before this.storeSessionState(sessionState) line, once this changes done it started working.
We have option of disabling Nonce check, but its stopping the website to load.
Please let me know thoughts on this.
The text was updated successfully, but these errors were encountered: