- Notifications
You must be signed in to change notification settings - Fork0
ksuandi/role-based-auth-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A compojure-api sample utilizing token-based authentication and role-guarded routes.
Usescript/init_database.sql
lein ring server-headless
Then visithttp://localhost:3000/api/v1/docs/index.html
Available users:user:password,admin:password,poweruser:password
Get token viahttp://localhost:3000/api/v1/docs/index.html#!/auth/post_api_v1_login
Click 'Authorize' swagger button and enter
Token [your_token]Check routes that require specific role
About
A quick start compojure-api app containing custom token authentication
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published