an immutant project to show how to integrate friend for authentication/authorization using a custom workflow to do authentication via a REST/JSON API
it also uses ring-router for routing.
clone the project, deploy it with "lein immutant deploy"
login with user "jane" password "user_password" or "root" and "admin_password"
login, logout, try invalid credentials, what you can visit the same urls as the friend-acl example on this repo.
- visit http://localhost:8080/friend-json-auth/api/session to see auth details
- visit http://localhost:8080/friend-json-auth/api/ping to see a service anyone can access
- visit http://localhost:8080/friend-json-auth/api/user-only-ping to see a service that only users with the "user" role can access (for example jane)
- visit http://localhost:8080/friend-json-auth/api/admin-only-ping to see a service that only users with the "admin" role can access (for example root)
Copyright © 2013 marianoguerra
Distributed under the Eclipse Public License, the same as Clojure.