Skip to content

Commit

Permalink
last stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Dec 5, 2023
1 parent d72e374 commit ecd00ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions auth/api/iam/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ func TestWrapper_PresentationDefinition(t *testing.T) {
assert.Nil(t, response)
assert.Equal(t, "invalid_scope - not found", err.Error())
})

t.Run("error - incorrect DID", func(t *testing.T) {
test := newTestClient(t)

response, err := test.client.PresentationDefinition(ctx, PresentationDefinitionRequestObject{Did: "notdid", Params: PresentationDefinitionParams{Scope: "eOverdracht-overdrachtsbericht"}})

require.Error(t, err)
assert.Nil(t, response)
assert.Equal(t, "invalid_request - invalid DID", err.Error())
})
}

func TestWrapper_HandleAuthorizeRequest(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion auth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
// Config holds all the configuration params
type Config struct {
Irma IrmaConfig `koanf:"irma"`
PublicURL string `koanf:"publicurl"`
HTTPTimeout int `koanf:"http.timeout"`
ClockSkew int `koanf:"clockskew"`
ContractValidators []string `koanf:"contractvalidators"`
Expand Down

0 comments on commit ecd00ff

Please sign in to comment.