Giter Club home page Giter Club logo

buji-guice-demo's Introduction

What is this project?

This is a fork of the buji-oauth-demo project to demonstrate a usage of the buji-oauth OAuth client for Shiro with Google Guice. The web app is protected with the Shiro & buji-oauth libraries: when a user tries to access a protected area, he’ll be redirected to a specified OAuth provider (like Facebook, Twitter, etc.) to log in and send back to the app after successful authentication, authenticated and with a complete user profile.

Quick start & test

To start quickly, build the project and launch the web app with Jetty:

cd buji-guice-demo
mvn clean install jetty:run

To test:
- call the http://localhost:8080/facebook/index.jsp URL by clicking on the facebook/index link
- be sent to Facebook and log in
- be redirected back to the app, authenticated and with a complete user profile.

Or click on another link to be authenticated through another provider: Google, LinkedIn, Twitter, Yahoo.

Manual deployment

You can also deploy manually this web app into your favourite web applications server:
- buji-guice-demo on http://localhost:8080/

License

This code is in public domain.

buji-guice-demo's People

Contributors

vonzeppelin avatar

Watchers

 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.