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

Improved REST API permission system (FooCard authentication) #26

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

kjagiello
Copy link
Member

The REST API, in its current form, provides only one way of accessing it, namely through API tokens. The permission system for the API tokens is currently very basic and there is no easy way of implementing more specialised endpoints, such as purchase cancelling, and controlling which users may access those endpoints and how they can interact with them.

What we want is an additional type of API token, a card token, that is generated based on the FooCard that was used to login. Using card token would make it possible to for example implement purchase cancelling for purchases associated with the card. The regular API tokens could therefore be limited to read-only operations, whereas a card token would be required in order to do write operations, such as making a purchase or canceling one.

@kjagiello kjagiello added this to the 2.1.0 milestone Feb 24, 2017
@kjagiello kjagiello requested review from flaeppe and removed request for flaeppe February 24, 2017 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants