/grails-shiro-rest

Simple REST auth based on Grails Shiro plugin

Primary LanguageGroovy

Not secured urls

http://localhost:8080/

Restricted urls

http://localhost:8080/secretaryRoom
http://localhost:8080/bossRoom

REST API

http://localhost:8080/rest/secretaryRoom
http://localhost:8080/rest/bossRoom

Users and access

UserPasswordHallSecretary RoomBoss Room
anonimousX
Lesha12345XXX
Masha12345XX
Dasha12345XX

REST access

to get token: http://localhost:8080/rest/auth?username={XXX}&password={YYY} (for example http://localhost:8080/rest/auth?username=Lesha&password=12345 )
to get resource: http://localhost:8080/rest/{resource}?token={token} (for example http://localhost:8080/rest/bossRoom?token=EKOSBCKE3CXHA61Y )