open-hand / choerodon-starters

This is the toolkit developed by Choerodon and provides some basic dependencies for use in the development process.
http://choerodon.io
Apache License 2.0
78 stars 64 forks source link

[FIX] FeignRequestInterceptor 类型强转失败 #2

Closed RavenCM closed 5 years ago

RavenCM commented 5 years ago

在不需要授权的接口中使用Feign调用时,io.choerodon.feign.FeignRequestInterceptor拦截器获取到的detailsorg.springframework.security.web.authentication.WebAuthenticationDetails,强转org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationDetails会抛出异常