Skip to content

Commit

Permalink
fix: don't list org SSOs in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Nov 22, 2023
1 parent 1a098b7 commit 0921cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions selfservice/strategy/oidc/strategy_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ func (s *Strategy) PopulateSettingsMethod(r *http.Request, id *identity.Identity
sr.UI.GetNodes().Remove("unlink", "link")
sr.UI.SetCSRF(s.d.GenerateCSRFToken(r))
for _, l := range linkable {
// We do not want to offer to link SSO providers in the settings.
if l.Config().OrganizationID != "" {
continue

Check warning on line 169 in selfservice/strategy/oidc/strategy_settings.go

View check run for this annotation

Codecov / codecov/patch

selfservice/strategy/oidc/strategy_settings.go#L169

Added line #L169 was not covered by tests
}
sr.UI.GetNodes().Append(NewLinkNode(l.Config().ID))
}

Expand Down

0 comments on commit 0921cde

Please sign in to comment.