spring-security-oauth2 Questions
1
I am working on a microservice architecture developed in Spring boot with an API gateway service using Spring Cloud Gateway. I am using Keycloak as an identity provider. Everything is working fine ...
Silvie asked 17/6, 2020 at 13:27
3
I'm developing an single-page with Javascript+AngularJS on the client side and Spring MVC + Spring Security OAuth2 on the server side. Spring MVC acts as a REST controller for any AJAX requests fro...
Fulvous asked 7/2, 2015 at 16:25
2
Solved
Similar to this question but it got no answers: Spring Security: Handle InvalidBearerTokenException in @ExceptionHandler
I have similar code and I'm trying to catch org.springframework.security.oau...
Wil asked 18/2, 2022 at 5:42
4
Solved
I have a requirement to use two different authorization servers (two Okta instances) to validate authentication tokens coming from two different web applications inside a single Spring Boot applica...
Unskilled asked 3/2, 2020 at 0:39
4
Solved
Trying to get a UserDetailsService working for an oauth2 resource server I set up. I'm able to successfully authenticate the jwt, but nothing I do seems to get it to call the loadUserByUsername met...
Terraqueous asked 24/10, 2020 at 14:21
6
I am new to spring environment and i'm just learning oauth2.
Is there a way to make the authorization server also a resource server?
I am looking at this new project https://github.com/spring-proje...
Enrica asked 2/2, 2022 at 0:45
5
I am using spring security oauth in my project. I am excluding some urls from authentication by configuring in spring security ResourceServerConfigurerAdapter. I added http.authorizeRequests().antM...
Torse asked 29/3, 2016 at 23:21
9
I am currently using Spring OAuth2Client version 5.2.4.RELEASE in my project.
I have implemented Spring Security by referring to the Official Spring Docs here.
import org.springframework.context.an...
Headley asked 18/6, 2020 at 9:24
5
Solved
I am trying to implement the client_credentials grant to get a token in my spring boot resource server.
I am using Auth0 as an Authorization server. They seem to require an extra parameter in the ...
Naples asked 28/11, 2018 at 17:2
13
Solved
I am migrating from Spring Boot 1.4.9 to Spring Boot 2.0 and also to Spring Security 5 and I am trying to do authenticate via OAuth 2. But I am getting this error:
java.lang.IllegalArgumentExce...
Sweatt asked 4/4, 2018 at 14:51
4
Solved
I'm using Spring Oauth2 and Spring Pre-post Annotations With Spring-boot
I Have a service class MyService. one of MyService methods is:
@PreAuthorize("#id.equals(authentication.principal.id)")
pu...
Copra asked 9/2, 2015 at 13:14
2
Solved
I have a problem with JWT decoding.
I'm writing an integration for oauth2 authorization service.
I send a request to get an authorized token and get a response like:
{
"access_token": &qu...
Dulaney asked 21/1, 2021 at 14:21
8
Solved
I am implementing spring security with oauth2 and jwt.
the below is my login function
function doLogin(loginData) {
$.ajax({
url : back+"/auth/secret",
type : "POST",
data : JSON.stringify(lo...
Vegetable asked 8/3, 2017 at 11:42
2
Solved
I am using Spring Security OAuth2 client application and have provided the below configuration
spring:
security:
oauth2:
client:
registration:
okta:
client-id:
client-secret:
scope: open...
Bos asked 17/12, 2021 at 7:23
1
Is it possible to use JSON Web Encryption(JWE) with Spring Security OAuth2 JWT ?
Right now I have a following JwtAccessTokenConverter:
@Bean
public JwtAccessTokenConverter accessTokenConverter() ...
Complot asked 29/9, 2016 at 11:11
5
Solved
I have tried to set network proxy in the following ways, but none of the method is working
1: set jvm variables like -Dhttp.proxyHost= -Dhttp.proxyPort= .......
2: Created the Bean.
@Bean
public ...
Intercalation asked 16/6, 2016 at 8:43
3
Solved
I'm trying to get a simple Spring OAuth2 SSO application working and I've been unable to do so. Here's the steps and results of what's happened:
Hit endpoint /user, which is secured by OAuth2
I g...
Madlynmadman asked 13/7, 2015 at 12:31
3
Solved
I am implementing a REST API with Spring Boot and I am securing it with JWT and Oauth 2.
I have no problems with authentication and producing an access token.
When a user makes a request I want t...
Isotonic asked 27/2, 2019 at 15:57
2
Solved
I referred this question on SO: Google oauth 400 response: No 'Access-Control-Allow-Origin' header is present on the requested resource
but the solution suggested is for Javascript web app ...
Pedestrian asked 22/2, 2018 at 10:33
2
By reference https://www.baeldung.com/spring-security-extra-login-fields
I intend to customize the the functionality of Spring security Authentication UsernamePasswordAuthenticationFilter to get th...
Malvina asked 30/11, 2022 at 14:16
9
Solved
I'm using Spring Boot Security with OAuth2. I wan't to disable security for health endpoint.
I can totally disable security or write my own implementation of WebSecurityConfigurerAdapter and disab...
Equally asked 2/9, 2018 at 15:59
2
Solved
I have created a client with Spring Security. As Authorization Server I use Keycloak.
Now I want to gain access to the access token, using the parameter annotation @RegisteredOAuth2AuthorizedClient...
Celestial asked 19/4, 2022 at 7:11
7
Solved
I am trying to implement OAuth2 AuthorizationServer as described in this article but I keep getting the error below.
For a spring security config:
import org.springframework.beans.factory.annotati...
Darnall asked 28/4, 2019 at 5:47
5
I am new to Spring security and developing spring REST API with OAuth2 authentication and authorization. Everything is working fine, but when I request Refresh token, than I get error which states ...
Velez asked 4/9, 2017 at 19:3
2
Solved
I am having some problems when testing an oauth2 resource server using @WebMvcTest and the POST HTTP method.
I always receive a 403 status code when I don't send the csrf token, even though the to...
Dogoodism asked 18/7, 2019 at 22:47
1 Next >
© 2022 - 2025 — McMap. All rights reserved.