Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Demo for bootique-shiro module

NotificationsYou must be signed in to change notification settings

bootique-examples/bootique-shiro-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

verify

bootique-shiro-demo

SimpleBootique app demonstrating the Bootique Shiro Module with Jersey.

You can find different versions of framework in use at

Prerequisites

  • Java 1.8 or newer.
  • Apache Maven.

Build the demo

git clone https://github.com/bootique-examples/bootique-shiro-demo.gitcd bootique-shiro-demomvn package

Enter the following to launch the app in Maven.

java -jar target/bootique-mvc-demo-1.0-SNAPSHOT.jar

After launching the app, go to

  1. http://localhost:9999/login.jsp check for permissions to have role 'admin', if have no permissions will redirect to/denied page, otherwise to public page
  2. http://localhost:9999/pub get public page returns hello
  3. http://localhost:9999/login?username=username&password=password log 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.
  4. http://localhost:9999/logout logges out. After logout you will see 'Logged out' message.
  5. http://localhost:9999/private endpoint with configured permissions inbootique.yml file.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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp