Comments (6)
That's not currently supported with the @Enable*
annotations (so you'd have to pull in the various bits that they do yourself). What do you need your custom token services to do?
from spring-cloud-security.
Hey @dsyer - I appreciate your response! Yeah, so I guess I am not missing anything this time! As the integration with Keycloak has advanced, we realized that having Keycloak verify/decode the access tokens was the most secure route to go. However it looks like the verify/decode endpoint is a GET not POST. So providing a custom RemoteTokenService would be the way to go.
from spring-cloud-security.
I'm actually having the same issue with ForgeRock's OpenAM right now. Any progress on this feature?
from spring-cloud-security.
These features moved to Spring Boot. If you need anything please open tickets there now (it looks to me like you can probably add a @Bean
of type ResourceServerTokenServices
to override though).
from spring-cloud-security.
Hi @dsyer
I understand that we could implement ResourceServerTokenServices. However what value we exposed to decouple RemoteTokenServices and we could extend it (make some method protected not private).
For instance, I have error when I call (private method postForMap on RemoteTokenServices#143)
restTemplate.exchange(path, HttpMethod.POST,
new HttpEntity<MultiValueMap<String, String>>(formData, headers), Map.class)
and without try catch, I don't get responseBody. In addition to that, I could override DefaultResponseErrorHandler I don't get the information from it.
try {
return restTemplate.exchange(path, HttpMethod.POST,
new HttpEntity<>(formData, headers), Map.class).getBody();
} catch (RestClientException exe) {
if (exe instanceof HttpClientErrorException) {
String responseBodyAsString = ((HttpClientErrorException) exe).getResponseBodyAsString();
logger.error("Can't path " + path + " responseBodyAsString " + responseBodyAsString);
}
throw exe;
}
Could you please explain why we have such protection in this service, or maybe I miss something?
I'll be really appreciated for any clarification
Thanks,
from spring-cloud-security.
This issue is closed. Read the comments (e.g. "These features moved to Spring Boot.").
from spring-cloud-security.
Related Issues (20)
- feign has conflict with @EnableWebFluxSecurity HOT 2
- config property "security.resource.jwt.key-uri" caused UnknownHostException HOT 2
- Do you have oauth2 migration demo? HOT 3
- Spelling error in documentation
- Spring Cloud Gateway java based RouteLocator not working with Spring Cloud Security HOT 4
- Move feign and gateway code to respective projects
- Deprecate spring-cloud-starter-oauth2 and spring-cloud-starter-security HOT 2
- Can't find OAuth2RestTemplate when relay OAuth2 JWT token between resource servers. HOT 4
- TokenRelayAutoConfiguration can't find ServerOAuth2AuthorizedClientRepository HOT 1
- Use ClientId and ClientSecret for token refresh HOT 3
- TokenRelayGatewayFilterFactory is a deprecated class only in spring-cloud-security.2.2.2.RELEASE HOT 1
- If oauth2 token issued at time and system time difference is more than 60secs, necessary logs are not captured. HOT 3
- @AuthorizationServer And @Configuration HOT 4
- What project to migrate to? HOT 3
- a bean of type 'org.springframework.cloud.commons.security.AccessTokenContextRelay' that could not be found. HOT 8
- a bean of type 'org.springframework.cloud.commons.security.AccessTokenContextRelay' that could not be found. HOT 2
- Do you have oauth2 migration demo?
- Had a Error when update springboot and Springcloud from Hoxton to 2020.0.4 HOT 2
- Hibernate issue when upgrading Spring Boot from 2.5.6 to 2.6.1
- 自定义Access配置 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-security.