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

Should vendure plan to both support tokenMethod authorization or cookie #960

Closed
tianyingchun opened this issue Jun 29, 2021 · 0 comments
Closed

Comments

@tianyingchun
Copy link
Contributor

Is your feature request related to a problem? Please describe.

In most case, we want to use vendure front with authorization using tokenMethod=bearer, and keep admin as session-cookie authentication.

Describe the solution you'd like

We can specify one or both, e.g. tokenMethod: ['cookie', 'bearer'] or maybe even an object so you can have different settings for the admin & shop APIs.

Describe alternatives you've considered

  1. both support 'cookie', 'bearer' at the same time, or with set individual config for shop-api and admin-api

Additional context
once we want to redesign admin/* system, we want to write plugin with restfull api to proxy webpages, while we reload admin/* page it will automatically upload authorization tickets, because we want to verify permission for there webpages,
but for front we want to use bearer token because if we use next.js it will more flexiable.

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

No branches or pull requests

2 participants