Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

New API key is seen as unauthorized when used for POST,PATCH, and DELETE #142

Open
rniedosmialek opened this issue Nov 14, 2018 · 6 comments

Comments

@rniedosmialek
Copy link

I decided to create a new API key and remove the previous. That was successful but now when I make API calls for POST,PATCH, or DELETE I receive "message": "Unauthorized". This was working with the previous API key but as part of a rotation process we rest it. Any suggestion on where to look at to why the new API is rejected and how to verify it is validating against the new key generated by the application stack?

@ks888
Copy link
Owner

ks888 commented Nov 15, 2018

I've just run the api test using the new API key and it passes without issues. So I'm not really sure why it happens.

This console page lists the available keys. Does the page include your new key? If so, is the key associated with a usage plan?

@rniedosmialek
Copy link
Author

rniedosmialek commented Nov 15, 2018 via email

@ks888
Copy link
Owner

ks888 commented Nov 15, 2018

The red square below indicate a usage plan.
screen shot 2018-11-15 at 22 32 47

APIs to get a list components, incidents, and maintenances items need no permission. So it works even if the api key is wrong.

@rniedosmialek
Copy link
Author

rniedosmialek commented Nov 15, 2018 via email

@rniedosmialek
Copy link
Author

rniedosmialek commented Nov 15, 2018 via email

@gdestuynder
Copy link

for the record i also had to manually associate them in api gateway, and then all is good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants