spray security: how to protect routes?
Asked Answered
L

1

6

I'm trying to implement a full development with REST Spray. There is an argument that I have not yet figured out and I have not found documented: how to protect the routes for authentication / authorization? I would just use a token - based authentication through a header of the request.

Lindly answered 28/9, 2014 at 9:51 Comment(1)
Have you seen SecurityDirectives docs section?Lm
S
2

At the moment Spray implements only basic security mechanisms. It comes with HTTP basic authentication implemented and some cookie support.

It makes sense not to include more specific security implementations because every project implements it differently. Although Oauth implementation would be useful in many cases. There might be projects that provide that for Spray.

Token based authentication sounds like a good general choice.

Scotch answered 28/9, 2014 at 10:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.