Hi Team,
I was trying to configure Netsuite as the OIDC provider of Oracle IDCS.
Step 1, On the Login page of IDCS, click the button Netsuite
Step 2, there is a popup window embedded with the NetSuite login page
Step 3, Logged in with email and password, and also 2FA. it was redirected back to IDCS. but this error occurred.
I just checked the login trail in NetSuite, I can see the detail below.
In the NetSuite document, InvalidState means
"Ensure that the value of the state parameter:
■ is 24 to 1024 characters long
■ consists of printable ASCII characters",
but I can fetch the state in the request
/app/login/secure/loginrouter.nl?c=TSTDRVXXX&rdt=/app/login/oauth2/authorize.nl?client_id=5e4caf782412dd34889aba2d5881e900fa82d6e558a6c62f7a89f8bd25e9fcc0&response_type=code&redirect_uri=https%3A%2F%2Fidcs-5cf79c522dc94235af7ca69d73686cd3.identity.oraclecloud.com%2Foauth2%2Fv1%2Fsocial%2Fcallback&scope=openid+email&state=_q60sYHuhFk9xKwC-qX6SQ&nonce=w7wjsZj8ojHG1rJl3RLaXWJwawLELPYP
We can see state=_q60sYHuhFk9xKwC-qX6SQ, I think the length and characters are good.
Do you have any advice? thanks a lot!
Best regards,
Patrick