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

Cognito with API keys #12

Open
ardian-c opened this issue Aug 10, 2020 · 1 comment
Open

Cognito with API keys #12

ardian-c opened this issue Aug 10, 2020 · 1 comment

Comments

@ardian-c
Copy link

ardian-c commented Aug 10, 2020

Hi,

Thank you for this helpful package.

I'm trying to integrate an API that wants to use the same endpoints as the web application does. Currently, with the auth required decorator, these methods expect a certain authentication header to be sent, and that to be valid with Cognito. Is there a way I can bypass the decorator by validating the API key instead of the authentication header?

Thanks

@speedhawk21
Copy link

If you're using an API key to provide authenticated access, you wouldn't need Cognito. You can simply store the API key in your database and use a lookup.

Here's some helpful information to create a decorator using an api key:

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

No branches or pull requests

2 participants