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
I saw the similar issues and tried all of them but my problem still continues. I am seeing 2 lines of log like this:
[17:07:24 DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ValidateTokenContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+Protection+ValidateIdentityModelToken.
[17:07:24 DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ValidateTokenContext was marked as rejected by OpenIddict.Validation.OpenIddictValidationHandlers+Protection+ValidateIdentityModelToken.
[17:07:24 DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateAccessToken.
[17:07:24 DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was marked as rejected by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateAccessToken.
[17:07:24 INF] OpenIddict.Validation.AspNetCore was not authenticated. Failure message: An error occurred while authenticating the current request.
[17:07:24 INF] OpenIddict.Validation.AspNetCore was not authenticated. Failure message: An error occurred while authenticating the current request.
Nothing has changed other than the upgrades.
Only change is upgrading to version 8 (with openiddict 4>5) Applied openiddict migration.
account/login call returns a response (not an error) but the response is empty/default.
If account/login is called with wrong inputs it returns an error. This shows that login is working but returning result is empty.
(Front end is Angular)
Note: When I call the account/login from command line it is successful.
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
Version 8.1.3
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered:
Thank you @maliming . I changed my Serilog level to Verbose and I saw this error.
Microsoft.IdentityModel.Tokens.SecurityTokenMalformedException: IDX14100: JWT is not well formed, there are no dots (.).
The token needs to be in JWS or JWE Compact Serialization Format. (JWS):
EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE):
'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'.
Although, when I copied my JWT to jwt.io site, it was parsed nicely.
From there I learned that after moving to .net 8.0 some people explicitly added Microsoft.IdentityModel.JsonWebTokens NuGet package to their projects. Tried that, and it fixed the solution.
Is there an existing issue for this?
Description
I saw the similar issues and tried all of them but my problem still continues. I am seeing 2 lines of log like this:
Nothing has changed other than the upgrades.
Only change is upgrading to version 8 (with openiddict 4>5) Applied openiddict migration.
account/login call returns a response (not an error) but the response is empty/default.
If account/login is called with wrong inputs it returns an error. This shows that login is working but returning result is empty.
(Front end is Angular)
Note: When I call the account/login from command line it is successful.
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
Version 8.1.3
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: