Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Oct 8, 2024
1 parent f91b05e commit fd2aba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func TestModule_ActivateServiceForSubject(t *testing.T) {
subject := make([]credential.DiscoveryRegistrationCredentialSubject, 0)
_ = credentials[1].UnmarshalCredentialSubject(&subject)
assert.Equal(t, "value", subject[0]["test"])
assert.Equal(t, "https://example.com/oauth2/alice", subject[0]["authServerURL"])
assert.Equal(t, "https://nuts.nl/oauth2/alice", subject[0]["authServerURL"])
return &vpAlice, nil
})
testContext.subjectManager.EXPECT().ListDIDs(gomock.Any(), aliceSubject).Return([]did.DID{aliceDID}, nil)
Expand Down
2 changes: 2 additions & 0 deletions policy/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (b *LocalPDP) Configure(_ core.ServerConfig) error {
return fmt.Errorf("failed to load policy from directory: %w", err)
}
}
}
if b.config.Directory != "" {
if err := b.loadFromDirectory(b.config.Directory); err != nil {
return fmt.Errorf("failed to load policy from directory: %w", err)
}
Expand Down

0 comments on commit fd2aba9

Please sign in to comment.