-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Logout from Sample App with error alert in Pixel Identity #94
Comments
AddOn: |
Ack. I will have to check this. |
Seems issue on client side which is not able to respond to redirect. It will take a while to address this as I still don't have a solution. |
I'have seen that the call in UserServices
not responding with a json but with html (user is no longer authenticated) because the API has [Authorized] attribute and so deserialization fails. Instead, it should redirect to login page? |
yes the client fails to deserialize the response as it is not expected json but a redirect response. So, authentication endpoint is working as expected but client doesn't redirect. The AuthenticationHandler handler attached on HttpClient should ideally take care of this as per my understanding but doesn't seem to happen. I need to dig in deeper and find out if we need a custom authentication handler . |
I have made some others tests:
'<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0.
Inspecting http calls, for example clicking on Account > profile link menu, there is a call to
https://localhost:44382/pauth/api/users/name/**USERNAME**
that response 302 redirect to
https://localhost:44382/pauth/Identity/Account/Login?ReturnUrl=%2Fpauth%2Fapi%2Fusers%2Fname%2F**USERNAME**
and this request response 200 OK with HTML content.
There is something wrong that I have done? Thank you.
The text was updated successfully, but these errors were encountered: