Relative Content

Tag Archive for spring-securityjwtoktabearer-token

Bearer error=”invalid_token”, JwtAuthenticationProvider – Failed to authenticate since the JWT was invalid. Spring Security Okta

I’m introducing a security layer into my application so that some endpoints are protected via Okta.
I have currently already implemented Spring Security Oauth2 with Azure, in fact the login to my app is managed like this.
So what I want to do now is add a new authentication, but only to access specific endpoint after logging in. What I expect is that when I try to reach the secure endpoint I will be redirected to the okta login page. Once authenticated then I have to go back to my protected page.