flipt icon indicating copy to clipboard operation
flipt copied to clipboard

fix(auth): allow authorization for Github and OIDC behind the reverse proxy

Open erka opened this issue 1 year ago • 1 comments

erka avatar May 29 '24 14:05 erka

Codecov Report

Attention: Patch coverage is 79.68750% with 13 lines in your changes missing coverage. Please review.

Project coverage is 71.08%. Comparing base (f997fb9) to head (138bbbd). Report is 384 commits behind head on main.

:exclamation: Current head 138bbbd differs from pull request most recent head 5ccfeee

Please upload reports for the commit 5ccfeee to get more accurate results.

Files Patch % Lines
internal/server/authn/method/http.go 50.00% 6 Missing :warning:
internal/config/authentication.go 86.84% 5 Missing :warning:
internal/cmd/authn.go 0.00% 1 Missing :warning:
internal/cmd/http.go 0.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3135      +/-   ##
==========================================
+ Coverage   70.78%   71.08%   +0.29%     
==========================================
  Files          91      109      +18     
  Lines        8729     7981     -748     
==========================================
- Hits         6179     5673     -506     
+ Misses       2165     1869     -296     
- Partials      385      439      +54     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 29 '24 14:05 codecov[bot]

@erka is this ready for review?

markphelps avatar May 31 '24 18:05 markphelps

@erka is this ready for review?

@markphelps It works, but it's not ideal. The callback_url and authorize_url in the authentication method metadata lack the necessary prefix. While modifying them is possible, it involves dealing with low-level gRPC objects, making performance impact and maintenance difficult.

erka avatar May 31 '24 20:05 erka

Thanks for the efforts guys. Really cool 👍

tvcsantos avatar Jun 07 '24 10:06 tvcsantos