-
Notifications
You must be signed in to change notification settings - Fork 985
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
fix: apply strategy filters in identifier first as well #4352
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4352 +/- ##
==========================================
+ Coverage 78.56% 78.57% +0.01%
==========================================
Files 366 369 +3
Lines 27168 27207 +39
==========================================
+ Hits 21344 21378 +34
+ Misses 4198 4197 -1
- Partials 1626 1632 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9202604
to
953a39d
Compare
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.
I addressed your comments!
bc35eb8
to
8288f7a
Compare
@@ -837,7 +846,7 @@ func (s *Strategy) linkCredentials(ctx context.Context, i *identity.Identity, to | |||
creds, err := i.ParseCredentials(s.ID(), &conf) | |||
if errors.Is(err, herodot.ErrNotFound) { | |||
var err error | |||
if creds, err = identity.NewCredentialsOIDC(tokens, provider, subject, organization); err != nil { | |||
if creds, err = identity.NewOIDCLikeCredentials(tokens, s.ID(), provider, subject, organization); err != nil { |
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.
@hperl this was using OIDC credentials, the workaround was only possible in a very specific scenario prior.
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.
LGTM, I just have a question about counting org SSO credentials.
No description provided.