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

Authentication #18

Closed
6 tasks done
nfroidure opened this issue Feb 16, 2019 · 1 comment
Closed
6 tasks done

Authentication #18

nfroidure opened this issue Feb 16, 2019 · 1 comment
Milestone

Comments

@nfroidure
Copy link
Owner

nfroidure commented Feb 16, 2019

Feature request

Add authentication tools and use it in create-whook

Feature description

  • authentication wrapper
  • translate authentication schemes to parameters at the router level (will avoid to have to declare them)
  • JWT token authentication service (create/check + cli tools)
  • oauth server implementation
  • support www-authenticate in the authorization wrapper (https://tools.ietf.org/html/rfc2617#page-8) for the first scheme of an endpoint
  • add more tests in whook example API service for better security of whook-example based projects
@nfroidure nfroidure added this to the 4.0.0 milestone Feb 16, 2019
nfroidure added a commit that referenced this issue Feb 16, 2019
nfroidure added a commit that referenced this issue Feb 16, 2019
@nfroidure
Copy link
Owner Author

Maybe use the x-whook property to selectively transform/add the API security:

debugging && definition.operation.security
? {
...definition,
operation: {
...definition.operation,
security: {
...definition.security,
fakeAuth: ['admin'],
},
},
}
: definition,
)
.reduce(
(paths, definition) => ({
...paths,
[definition.path]: {
...(paths[definition.path] || {}),
[definition.method]: definition.operation,
},
}),

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

1 participant