При входе через кнопку "войти через госуслуги" перекидывает на страницу с ошибкой "HTTP Status 500 – Internal Server Error". Попробовала зарегистрироваться через почту, теперь не дает зайти через почту и пароль, пишет что нельзя "Вход по логину/E-mail и паролю представителя ЮЛ и ФЛ невозможен". Пробовала через разные телефоны, пк, ноутбуки, чистили кэш, куки, перезагружали устройства, также разные браузеры и разные провайдеры.
Вот текст ошибки:
HTTP Status 500 – Internal Server Error
Type Exception Report
Message An error occurred while attempting to decode the Jwt: Signed JWT rejected: Invalid signature
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.springframework.security.oauth2.jwt.JwtException: An error occurred while attempting to decode the Jwt: Signed JWT rejected: Invalid signature
ru.fors.pts.web.portal.security.esia.EsiaNimbusJwtDecoderJwkSupport.decode(EsiaNimbusJwtDecoderJwkSupport.java:106)
ru.fors.pts.web.portal.security.esia.EsiaOidcAuthorizationCodeAuthenticationProvider.authenticate(EsiaOidcAuthorizationCodeAuthenticationProvider.java:146)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:199)
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter$AuthenticationManagerDelegator.authenticate(WebSecurityConfigurerAdapter.java:502)
ru.fors.pts.web.portal.security.esia.EsiaLoginAuthenticationFilter.attemptAuthentication(EsiaLoginAuthenticationFilter.java:129)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter.doFilterInternal(OAuth2AuthorizationRequestRedirectFilter.java:128)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
ru.fors.pts.web.portal.security.esia.EsiaAuthorizationRequestRedirectFilter.doFilterInternal(EsiaAuthorizationRequestRedirectFilter.java:120)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
Root Cause
com.nimbusds.jose.proc.BadJWSException: Signed JWT rejected: Invalid signature
com.nimbusds.jwt.proc.DefaultJWTProcessor.<clinit>(DefaultJWTProcessor.java:104)
ru.fors.pts.web.portal.security.esia.EsiaNimbusJwtDecoderJwkSupport.<init>(EsiaNimbusJwtDecoderJwkSupport.java:75)
ru.fors.pts.web.portal.security.esia.EsiaNimbusJwtDecoderJwkSupport.<init>(EsiaNimbusJwtDecoderJwkSupport.java:56)
ru.fors.pts.web.portal.security.esia.EsiaOidcAuthorizationCodeAuthenticationProvider.getJwtDecoder(EsiaOidcAuthorizationCodeAuthenticationProvider.java:251)
ru.fors.pts.web.portal.security.esia.EsiaOidcAuthorizationCodeAuthenticationProvider.authenticate(EsiaOidcAuthorizationCodeAuthenticationProvider.java:145)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174)
org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:199)
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter$AuthenticationManagerDelegator.authenticate(WebSecurityConfigurerAdapter.java:502)
ru.fors.pts.web.portal.security.esia.EsiaLoginAuthenticationFilter.attemptAuthentication(EsiaLoginAuthenticationFilter.java:129)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter.doFilterInternal(OAuth2AuthorizationRequestRedirectFilter.java:128)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
ru.fors.pts.web.portal.security.esia.EsiaAuthorizationRequestRedirectFilter.doFilterInternal(EsiaAuthorizationRequestRedirectFilter.java:120)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/8.5.39