​How to allow resource path if there are query params in the request?

So I have this very long [GET] request which is the ff. below

https://<host>.test-account-service/authorize?client_id=<client_id>&response_type=code&redirect_uri=...
4&UserId=ApigeeEdge123&ExitUrl=https://www.youtube.com 

When accessing this via

https://<host>.test-account-service/authorize. 

I'm getting a response that its missing the proper query params. But when I add a query param alright, apigee throws an error of

oauth.v2.InvalidApiKeyForGivenResource

I already have the following resource paths in my Product..

/test-account-service/authorize 
/test-account-service/authorize?* 
/test-account-service/authorize* 
/test-account-service/authorize/ 

None of those resource paths worked.

/test-account-service/authorize BTW is my basepath.

And I also have /test-account-service/user/authorize. Which I won't allow access to for that product.

0 2 426
2 REPLIES 2

Is your App Authorized for your API Product? There are details of this error in the last row of https://docs.apigee.com/api-platform/reference/policies/verify-api-key-policy#runtime-errors

Yes,it's authorized alright. As could be seen when I remove the query params in the request. But whenever I add the query params , the InvalidApiKeyForGivenResource is being thrown. What's the proper pattern for me to be able to use the test-account-service/authorize basepath ?. Do wildcards even work here?