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

Deployment set scope on route #55

Closed
chriskapp opened this issue Aug 25, 2017 · 1 comment
Closed

Deployment set scope on route #55

chriskapp opened this issue Aug 25, 2017 · 1 comment
Labels

Comments

@chriskapp
Copy link
Member

To access a protected route a user must assign the route to a specific scope. At the moment this must be done manually after deployment. We should add a scope property to the route i.e.:

version: 1
scope: ["foo", "bar"]
methods:
  GET:
    public: true
    responses: 
      200: Todo-Collection
      500: Message
    action: "${dir.src}/Todo/collection.php"

If we deploy such a route we sould automatically create the scope foo and bar and assign the route. This would simplify setting up protected routes. Since a user could automatically obtain such a scope through OAuth2.

Also it would be possible to provide a tag input at the backend where a user could set these scopes per route.

@chriskapp
Copy link
Member Author

Implemented in the 0.9.5 release

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

No branches or pull requests

1 participant