Hi
Connection to signalR fails with the following exception
URL: //localhost:22742/signalr-chat/negotiate?enc_auth_token=undefined&negotiateVersion=1
System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64String(String s)
at Abp.Runtime.Security.SimpleStringCipher.Decrypt(String cipherText, String passPhrase, Byte[] salt, Nullable1 keySize, Byte[] initVectorBytes) at MyApp.Web.Startup.AuthConfigurer.SetToken(MessageReceivedContext context, Boolean allowAnonymous) in C:\Secure\Code\MyApp\Aspnet-core\src\MyApp.Web.Host\Startup\AuthConfigurer.cs:line 126 at MyApp.Web.Startup.AuthConfigurer.QueryStringTokenResolver(MessageReceivedContext context) in C:\Secure\Code\MyApp\Aspnet-core\src\MyApp.Web.Host\Startup\AuthConfigurer.cs:line 90 at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents.MessageReceived(MessageReceivedContext context) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationHandler
1.AuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
at Abp.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
1 Answer(s)
-
0
Hi @kasem,
Could you clear your browser cookies and local storage and try again ?