-
Notifications
You must be signed in to change notification settings - Fork 16
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
Added new header to capture customattributes #402
Conversation
Codecov Report
@@ Coverage Diff @@
## main #402 +/- ##
===================================
+ Coverage 89% 89% +1%
===================================
Files 9 9
Lines 762 768 +6
===================================
+ Hits 674 680 +6
Misses 46 46
Partials 42 42
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -56,6 +57,11 @@ func encodeExtAuthzMetadata(api string, ac *auth.Context, authorized bool) *stru | |||
headerOrganization: stringValueFrom(ac.Organization()), | |||
headerScope: stringValueFrom(strings.Join(ac.Scopes, " ")), | |||
} | |||
|
|||
if ac.CustomAttributes != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more quick thing: Could you please add a test to verify that this header isn't added when there is no value?
…butes if it is not set in the claims in remoteservice proxy
Thank you! |
No description provided.