-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No state in response when doing readSigninResponseState #1712
Comments
I do not understand what you mean: SigninResponse.ts is protected by a oidc-client-ts/src/SigninResponse.ts Lines 55 to 61 in 3d403d9
SigninRequest.ts is protected by a if oidc-client-ts/src/SigninRequest.ts Lines 133 to 135 in 3d403d9
|
but when oidc-client-ts/src/OidcClient.ts Line 159 in 3d403d9
The state is indeed present because its properly prepared when creating the siginRequest, but if im not using a the url_state then the this.state = splitState[0] will be undefined which will make the condition above throw.
|
oidc-client-ts/src/SigninRequest.ts Lines 155 to 158 in 1d39fe7
|
Hi,
when doing a silent signing, the callback always expects that there is a custom state
url_state
. This is required because:SigninResponse.ts:
And then at the callback it throws readSigninResponseState: Error: No state in response from the
readSigninResponseState
function from OidcClient.ts.This happens because when
url_state
is provided:SigninRequest.ts
but url_state is optional.
The text was updated successfully, but these errors were encountered: