fix: check allowed origins from calling and not called application (#2106)

* fix: check allowed origins from calling and not called application

* fix test
This commit is contained in:
Livio Amstutz
2021-07-30 11:30:51 +02:00
committed by GitHub
parent de9f88bf5b
commit e1a3cc732d
5 changed files with 20 additions and 20 deletions

View File

@@ -15,8 +15,8 @@ type testVerifier struct {
memberships []*Membership
}
func (v *testVerifier) VerifyAccessToken(ctx context.Context, token, clientID string) (string, string, string, string, error) {
return "userID", "agentID", "de", "orgID", nil
func (v *testVerifier) VerifyAccessToken(ctx context.Context, token, clientID string) (string, string, string, string, string, error) {
return "userID", "agentID", "clientID", "de", "orgID", nil
}
func (v *testVerifier) SearchMyMemberships(ctx context.Context) ([]*Membership, error) {
return v.memberships, nil