Giter VIP home page Giter VIP logo

shiro-test-dan's Introduction

shiro-test-dan

Simple Test project(s) using Shiro

The branches contain various experiments:

  • minimalSSOWithCache - Contains only a custom SessionDAO implementation (MySesssionDAOToDisk). Shiro is configured to use Ehcache for caching.

  • skunkworks - Contains attempts to store various objects in the Shiro session.

  • master - Contains custom Cache and CacheManager implementations in addition to SessionDAO implementations that can store to disk or in memory.

Setup

  • To deploy to a local running tomcat 6 instance, make the following changes:
  1. Add a server block to .m2/settings.xml:

        <servers>
        ...
            <server>
                <id>mylocalserver</id>
                <username>tomcat</username>
                <password>tomcat</password>
            </server>
    
  2. Add user/perms in tomcat/conf/tomcat-users.xml:

                  <role rolename="tomcat"/>
                  <user username="tomcat" password="tomcat" roles="tomcat,manager-gui,manager-script,manager-jmx,manager-status"/>
    
  3. Deploy to the local tomcat 6 instance using:

    mvn clean package tomcat6:redeploy
    

The apps will be available at:

    http://localhost:8080/appone/
    http://localhost:8080/apptwo/
  1. You can launch a locally installed tomcat with remote debugging enabled on port 8000 using:

    apache-tomcat-6.0.35$ bin/catalina.sh jpda start

Once deployed, you can login to each webapp with uid: admin, pwd: secret (see cacheImpl/src/main/resources/shiro.ini).

I'm also experimenting with publishing the maven site for this project on github gh-pages. See: wagon-scm -> Deploying your Maven site to GitHub's gh-pages. Doh! It looks like that approach is doomed: http://jira.codehaus.org/browse/WAGON-374.

Let's try this instead: http://maven.apache.org/plugins/maven-scm-publish-plugin/. Well, that example, if run with the default user.home dir in shown in Maven Multi Module Configuration could end up deleting your entire local home directory and overwriting your git source code tree with the maven web site files. Ick. Don't try that either.

OK, here's another approach: https://github.com/github/maven-plugins/. Well, that was closer, and at least not destructive, but still no joy.

How about Kathryn's plugin: https://github.com/khuxtable/wagon-gitsite. Oops, looks like Stephens gitsite fork is more recent/active: https://github.com/stephenc/wagon-gitsite. See Instructions.

The resulting site is available here: http://bhamail.github.com/shiro-test-dan/.

*** NOTE: The wagon-gitsite approach is basicaly deprecated in favor of: maven-scm-publish-plugin

shiro-test-dan's People

Contributors

bhamail avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.