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

Features ask #399

Closed
Segflow opened this issue Jul 5, 2017 · 2 comments
Closed

Features ask #399

Segflow opened this issue Jul 5, 2017 · 2 comments

Comments

@Segflow
Copy link

Segflow commented Jul 5, 2017

Hello, we are using Chalice to write our API, and here is some features we thing they will be useful to everyone using chalice.

  • When writing a built-in authorizer, sometimes we want to allow all routes after a successful token verification. Something like routes=['*'] would be very useful,
  • chalice local should use the envs set in config.json
  • Enable authorizers in local mode (very useful when writing built-in authorizers)
  • A way to add lambda functions that are not exposed to the API

Those are the main features we are missing in chalice(maybe some are already implemented and we are not aware).

Thanks for the amazing tool.

@stealthycoin
Copy link
Contributor

When writing a built-in authorizer, sometimes we want to allow all routes after a successful token verification. Something like routes=['*'] would be very useful,

I would expect that to work already and would consider it a bug that it doesn't. Interestingly enough this does work:
return AuthResponse(routes=[AuthRoute('*', ['*'])], principal_id='user')

I will log a bug for this issue. #403

chalice local should use the envs set in config.json

There is an open pull request for this (#396 ) although it fails codecov.

Enable authorizers in local mode (very useful when writing built-in authorizers)

I will open a feature request for this: #404

A way to add lambda functions that are not exposed to the API

Does this do what you want: #401 it was just merged in.

@Segflow
Copy link
Author

Segflow commented Jul 20, 2017

return AuthResponse(routes=[AuthRoute('*', ['*'])], principal_id='user')
does not work too

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

No branches or pull requests

2 participants