Skip to content

Commit

Permalink
Merge branch 'main' into multiple_credentials_issuance_2
Browse files Browse the repository at this point in the history
  • Loading branch information
mishasizov-SK committed Mar 18, 2024
2 parents 9988a6a + 5e58a22 commit e25b569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Binary file added component/wallet-cli/wallet-cli
Binary file not shown.
12 changes: 5 additions & 7 deletions pkg/service/oidc4ci/oidc4ci_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,11 @@ func (s *Service) checkPolicy(
clientAssertionType,
clientAssertion string,
) error {
if profile.OIDCConfig == nil ||
!lo.Contains(profile.OIDCConfig.TokenEndpointAuthMethodsSupported, attestJWTClientAuthType) {
return nil
}

if err := s.validateClientAssertionParams(clientAssertionType, clientAssertion); err != nil {
return err
if profile.OIDCConfig != nil &&
lo.Contains(profile.OIDCConfig.TokenEndpointAuthMethodsSupported, attestJWTClientAuthType) {
if err := s.validateClientAssertionParams(clientAssertionType, clientAssertion); err != nil {
return err
}
}

if profile.Checks.Policy.PolicyURL != "" {
Expand Down

0 comments on commit e25b569

Please sign in to comment.