Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Latest commit

 

History

History
24 lines (15 loc) · 1.25 KB

README.textile

File metadata and controls

24 lines (15 loc) · 1.25 KB

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.