Questions tagged [spring-boot-starter-oauth2-client]
21 questions
3
votes
0 answers
Access TD Ameritrade API using Reactive Spring OAuth 2.0 Client with just refresh token
I am trying to configure WebClient to access Oauth 2.0 token based TD Ameritrade protected resource without user interaction. I was able to do with Reddit client_credentials but unable to figure out using refresh_token for TD Ameritrade. Any ideas…

Bruce Horn
- 31
- 1
3
votes
2 answers
how to specify the scope with oauth2 client application
I am using Spring Security OAuth2 client application and have provided the below configuration
spring:
security:
oauth2:
client:
registration:
okta:
client-id:
client-secret:
…

zilcuanu
- 3,451
- 8
- 52
- 105
3
votes
1 answer
Spring Boot Oauth2 Client(Reactive) Mutual TLS/SSL token uri
Spring boot 2.3.x and Spring 5.x had recently added the support for configuring the reactive oauth2 client based on the WebClient class.
I had a requirement for the Client Credentials grant flow configuration
Doing this call without the Mutual…

kakabali
- 3,824
- 2
- 29
- 58
2
votes
0 answers
Web Api do not support authorization_code grant type:oauth2-resource-server and oauth2-client in single app as web_application_and_resource_server
I am trying to configure spring-boot-starter-oauth2-resource-server and spring-boot-starter-oauth2-client in a single app as web_application_and_resource_server. After following these instructions I have the following error:
Error: Caused by:…

kesavi
- 21
- 2
2
votes
0 answers
Spring Cloud Config Server OAuth2 authorization
I have a config server and spring boot microservices running with config server requiring basic authentication user/pw. I have a Keycloak server I want to use for authentication and authorization of the microservice to the config server.
I have…

Christopher Smith
- 197
- 1
- 18
1
vote
1 answer
Spring boot oauth2 integration with keycloak using Spring webflux along with multi-tenancy
I need to implement Authentication & Authorization using spring boot oauth2 with keycloak as a provider.
I also need to support muti-tenancy. I tried example with authentication using spring-boot-starter-auth2-client to authenticate, but not able to…

Pravin Nawale
- 11
- 2
1
vote
1 answer
Spring Boot, OAuth2 with azure and another provider (e.g. google)
I have an application that is using Azure Active directory to authenticate and I need to add another provider, for example google.
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class SecurityConfig extends…

telebog
- 1,706
- 5
- 25
- 34
1
vote
0 answers
How can I use client_credentials to access another oauth2 resource from spring cloud gateway
I want to use client credentials flow to access an OAuth protected resource from spring cloud gateway
There is no authentication needed to hit the gateway end point
The resource is OAuth2 protected and I have to use client credentials flow
Based on…

Rethesh
- 13
- 3
1
vote
0 answers
Mixed up access token in Spring WebMVC app using Spring Security oAuthClient
I am using spring Spring Boot / Security 5.4.8 with oAuth2-Client.
My App has background processing (threadpool with 3 parallel jobs).
Part of each job is consuming remote ReST service
which requires Jwt-Authentication
depending on the tenant…

Alex Schmidt
- 41
- 4
1
vote
2 answers
Spring Boot Oauth2 autoconfigure cycle after upgrade
I'm upgrading my application from Spring Boot 2.5.4 to 2.6.1 and having depency issues:
Description:
The dependencies of some of the beans in the application context form a cycle:
oidcAuthService defined in file…

fleske
- 400
- 2
- 7
1
vote
2 answers
Spring Security: Purpose of .oauth2Client(withDefaults()); in HttpSecurity
This is from the doc
public HttpSecurity
oauth2Client(Customizer
oauth2ClientCustomizer) throws java.lang.Exception
Configures OAuth 2.0 Client support.
Example Configuration
The following example demonstrates how to enable…

MrRobot9
- 2,402
- 4
- 31
- 68
1
vote
1 answer
Disable redirect to oauth2/authorization/{registrationId} in oauth2 client flow in Spring Cloud Gateway
Is it possible to disable redirect to oauth2/authorization/{registrationId} in oauth2 client flow?
I have following properties for oauth2 flow in Spring Cloud Gateway, but nowhere I didn't specify url oauth2/authorization/{registrationId}:
…

ColdDeath
- 49
- 6
0
votes
0 answers
how to intercept spring-boot-starter-oauth2-client's endpoint?
I run this spring-authorization-server samples to complete oidc authorization process.
Now I want to intercept http://127.0.0.1:8080/login/oauth2/code/messaging-client-oidc and get the code and state.Next, I want to complete the remaining…

hezf
- 139
- 1
- 10
0
votes
0 answers
How to proper implement client_secret_jwt Token request customize DefaultClientCredentialsTokenResponseClient
I would like to implement client_secret_jwt client authentication. In the Spring security document it is said
To customize only the parameters of the request, you can provide…

SaebaAtHot
- 23
- 2
0
votes
1 answer
Spring Oauth2Client exchange code for token
I am relatively new to Spring Configuration and I am trying to configure an oauth2client and authenticate it through my external identity provider OpenId Connect. I am applying authorization code grant flow.
When the user first accesses the server…

JPV
- 1,079
- 1
- 18
- 44