- Notifications
You must be signed in to change notification settings - Fork3
bootique-examples/bootique-shiro-examples
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
SimpleBootique app demonstrating the Bootique Shiro Module with Jersey.
You can find different versions of framework in use at
- Java 1.8 or newer.
- Apache Maven.
git clone https://github.com/bootique-examples/bootique-shiro-demo.gitcd bootique-shiro-demomvn packageEnter the following to launch the app in Maven.
java -jar target/bootique-mvc-demo-1.0-SNAPSHOT.jar
After launching the app, go to
http://localhost:9999/login.jspcheck for permissions to have role 'admin', if have no permissions will redirect to/deniedpage, otherwise to public pagehttp://localhost:9999/pubget public page returns hellohttp://localhost:9999/login?username=username&password=passwordlog in the user with specified username and password.There is two users:- user/password - has role 'user'
- adminuser/password - has role 'admin'After succes login you will be redirected to '/login.jsp' page. If you will specify wrong credentials you will see the 404 error.
http://localhost:9999/logoutlogges out. After logout you will see 'Logged out' message.http://localhost:9999/privateendpoint with configured permissions inbootique.ymlfile.If you logged in with 'admin' role you will see 'admin' message otherwise you will be redirected to/login.jsp
About
Demo for bootique-shiro module
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.