Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved the code from Spring Cloud Security #445

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Conversation

marcingrzejszczak
Copy link
Contributor

  • moved the interceptor
  • added configuration for the interceptor

Maybe @dsyer or @spencergibb will remember why there was no auto configuration for the oauth2 interceptor for Feign in the first place? I couldn't find one in Spring Cloud Security.

fixes #444

@marcingrzejszczak marcingrzejszczak added the enhancement New feature or request label Dec 14, 2020
@marcingrzejszczak marcingrzejszczak added this to the 3.0.0 milestone Dec 14, 2020
@codecov
Copy link

codecov bot commented Dec 14, 2020

Codecov Report

Merging #445 (a697fd2) into master (8655104) will decrease coverage by 0.52%.
The diff coverage is 61.70%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #445      +/-   ##
============================================
- Coverage     78.44%   77.91%   -0.53%     
- Complexity      407      417      +10     
============================================
  Files            48       49       +1     
  Lines          1452     1499      +47     
  Branches        215      222       +7     
============================================
+ Hits           1139     1168      +29     
- Misses          212      227      +15     
- Partials        101      104       +3     
Impacted Files Coverage Δ Complexity Δ
...mework/cloud/openfeign/FeignAutoConfiguration.java 83.33% <0.00%> (-3.21%) 4.00 <0.00> (ø)
...nfeign/security/OAuth2FeignRequestInterceptor.java 64.44% <64.44%> (ø) 10.00 <10.00> (?)

@@ -119,6 +119,11 @@
<artifactId>okhttp</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was hoping to move to the new stuff, but just having this moved is better. I think there's an open issue, that can come in a SR

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one that should be moved to this project probably spring-attic/spring-cloud-security#173
in the comments there are links to a couple of possible implementation using Spring Security only

@marcingrzejszczak marcingrzejszczak merged commit e58b52c into master Dec 16, 2020
@marcingrzejszczak marcingrzejszczak deleted the issues_#444 branch December 16, 2020 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Moving spring-cloud-security code
3 participants