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

Check authentication Access Token with Store API #71

Open
leomp12 opened this issue Feb 14, 2021 · 0 comments
Open

Check authentication Access Token with Store API #71

leomp12 opened this issue Feb 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@leomp12
Copy link
Member

leomp12 commented Feb 14, 2021

Is your feature request related to a problem? Please describe.
Admin user should be able to fetch some private app routes from E-Com Plus dashboard without knowing operator token, by providing self authentication X-Access-Token.

Describe the solution you'd like
Check store_access_token param and check token and permissions from Store API:
https://github.com/ecomplus/application-starter/blob/master/functions/index.js#L44-L47

Describe alternatives you've considered
None yet.

Additional context
An example is to get subscribers list from https://github.com/ecomplus/app-offers-notification.

@leomp12 leomp12 added the enhancement New feature or request label Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant