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

Best way to authenticate interactions #36

Open
BorisKourt opened this issue Jan 26, 2015 · 4 comments
Open

Best way to authenticate interactions #36

BorisKourt opened this issue Jan 26, 2015 · 4 comments

Comments

@BorisKourt
Copy link

Can you point me in the right direction to authenticate certain interactions within an ns? For example I want to authenticate create but not show in one ns, while all interactions in another.

I notice you mention (identified via authentication headers) in one comment, how would I apply something like the basic Friend authentication example to Rook?

Thank you!

@hlship
Copy link
Collaborator

hlship commented Feb 3, 2015

In the apps we're building with Rook, authentication is in two parts:

  • metadata on the individual endpoints to describe the required authorization (e.g., role or permission required)
  • middleware on the endpoint that creates handlers to authenticate requests and check authorization

I'll take a peek at the Friend example and see if I can add an equivalent to the Rook documentation.

@BorisKourt
Copy link
Author

That would be amazing, thank you. I just don't know where to plug in what :(

@hlship
Copy link
Collaborator

hlship commented Apr 14, 2015

Sorry, no progress on this lately, but I'll probably do a lot of documentation updates after the Swagger support (part of 0.1.27) is working acceptably.

@BorisKourt
Copy link
Author

Thank you for your update here!

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