Giter VIP home page Giter VIP logo

easy-sso's Introduction

Easy SSO

The purpose of this repository is to show how to simply secure with free and opensource components any web application with Open ID connect and provide SSO login without modifying it.

Getting started

docker compose is required to run this example

Add the following line to your hosts file to make domain names available on your computer

127.0.0.1 python.local java.local keycloak.local static.local

Run the following commands to run the example

# build images
docker compose build

# run containers
docker compose up

Following application are now available on your computer

URL Credentials Description
http://keycloak.local:8080 user: admin
password: admin
Keycloak admin page
http://localhost:8888 N/A (publicly available) Apache public page
http://python.local:8888 user: python
password: python
Python webapp
http://java.local:8888 user: user
password: user
Java webapp

Logout

You can logout to both application and identity provider by using front channel logout urls http://java.local:8888/redirect_oidc?logout=get
http://python.local:8888/redirect_oidc?logout=get

See module documentation for more details about logout.

Architecture

easy-sso architecture diagram

Keycloak

Keycloak is an opensource Identity and Access Management tool used as an Open Id Connect Identity provider. For this example a pre-configured realm with an A OpenID connect client named apache-oidc that allows Apache web server to authenticate user.

Apache HTTPD + OIDC module

Apache web server is used as a reverse proxy to handle any public network request and ensure SSO protection thanks to ODIC module. For this example a docker image based on official httpd image is build to add OIDC module and change web server configuration.

Python App

Python app is a minimal python web application that uses Flask framework.

Java App

Java app is a minimal java web application that uses Spring Boot framework.

easy-sso's People

Contributors

fb64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.