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

Authorization adapters #238

Open
intech opened this issue Apr 19, 2021 · 1 comment
Open

Authorization adapters #238

intech opened this issue Apr 19, 2021 · 1 comment
Assignees

Comments

@intech
Copy link
Member

intech commented Apr 19, 2021

Add sugar to the moleculer-web, the authorize option in the settings, example:

authorize: {
  type: "bearer", // add social and other adapters
  checkToken: "user.resolveToken"
}
authorize: {
  type: "query", // from url query params or header
  param: "token",
  checkToken: "user.resolveToken"
}

and through the function who needs a custom solution, example:

authorize: (ctx, route, req) => {},

Thus, it will be possible to make a semblance of an authorization adapter and use the modules.

Write your wishes in this issue! 💬

@intech intech self-assigned this Apr 19, 2021
@icebob
Copy link
Member

icebob commented Apr 19, 2021

good idea 👍

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