Skip to content

Added dependency that allows endpoints to accept in access tokens OR api keys#14

Open
amanmibra wants to merge 1 commit intoPropelAuth:mainfrom
amanmibra:amanmibra/new-dep
Open

Added dependency that allows endpoints to accept in access tokens OR api keys#14
amanmibra wants to merge 1 commit intoPropelAuth:mainfrom
amanmibra:amanmibra/new-dep

Conversation

@amanmibra
Copy link

Created AccessTokenOrAPIKeyDependency (could use a better name)

Problem: Current set of security dep wrappers only support Propel access tokens and not api key use.

Proposed Solution: AccessTokenOrAPIKeyDependency can be catalyst towards a more complete solution.

As of right now, this is tailored to my current use case, which assumes the user is only associated with one organization and does not handle personal API keys, and then returns an "Org" object (probably ideal if it was in the propelauth_py library instead), which is the return structure of the get_org api call.

I think the actual solution would just be more classes like with this one with different use cases that a user can choose. Let me know how I can help! Just wanted to kickstart this effort at the very least :)

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