Skip to content

Commit

Permalink
refactor: adopt getClientName function
Browse files Browse the repository at this point in the history
  • Loading branch information
BarcoMasile committed Feb 5, 2024
1 parent 0b50bb9 commit 38510b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kratos/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ func (s *Service) FilterFlowProviderList(ctx context.Context, flow *kClient.Logi
ctx, span := s.tracer.Start(ctx, "kratos.Service.FilterFlowProviderList")
defer span.End()

loginRequest := flow.Oauth2LoginRequest
clientName := loginRequest.Client.GetClientName()
clientName := getClientName(flow)

allowedProviders, err := s.authz.ListObjects(ctx, fmt.Sprintf("app:%s", clientName), "allowed_access", "provider")
if err != nil {
Expand Down

0 comments on commit 38510b8

Please sign in to comment.