Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update proxy.js #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sudheergopalam
Copy link
Contributor

Added additional validation check for InvalidApiKeyForGivenResource

DEBUG log:

superagent end POST http://data.test.bbc.co.uk/a127nitroremoteproxy/v2/oauth/verifyApiKey +1ms
superagent clear timeout POST http://data.test.bbc.co.uk/a127nitroremoteproxy/v2/oauth/verifyApiKey +0ms
apigee Verify response: {"error":"oauth.v2.InvalidApiKeyForGivenResource","error_description":"com.apigee.oauth.v2.OauthAdaptorVerificationException{ code = oauth.v2.InvalidApiKeyForGivenResource, message = Invalid ApiKey for given resource, associated contexts = []}"} +372ms
proxy error: {"code":"oauth.v2.InvalidApiKeyForGivenResource","statusCode":500} +376ms
connect:dispatcher anonymous : /passthrough?api_key=kpp9cjuhvbrzfytrnm25rdfx +0ms
superagent clear timeout POST http://data.test.bbc.co.uk/a127nitroremoteproxy/v2/oauth/verifyApiKey +2ms
finalhandler default 500 +3ms

Added additional validation check for InvalidApiKeyForGivenResource

DEBUG log:

  superagent end POST http://data.test.bbc.co.uk/a127nitroremoteproxy/v2/oauth/verifyApiKey +1ms
  superagent clear timeout POST http://data.test.bbc.co.uk/a127nitroremoteproxy/v2/oauth/verifyApiKey +0ms
  apigee Verify response: {"error":"oauth.v2.InvalidApiKeyForGivenResource","error_description":"com.apigee.oauth.v2.OauthAdaptorVerificationException{ code = oauth.v2.InvalidApiKeyForGivenResource, message = Invalid ApiKey for given resource, associated contexts = []}"} +372ms
  proxy error: {"code":"oauth.v2.InvalidApiKeyForGivenResource","statusCode":500} +376ms
  connect:dispatcher anonymous  : /passthrough?api_key=kpp9cjuhvbrzfytrnm25rdfx +0ms
  superagent clear timeout POST http://data.test.bbc.co.uk/a127nitroremoteproxy/v2/oauth/verifyApiKey +2ms
  finalhandler default 500 +3ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant