Giter VIP home page Giter VIP logo

awesaml's Introduction

AweSAML

"You said all I need to do, is configuring my IDP to enable SSO!!!"

saml

Installation

The easiest way to install AweSAML is to go get it into your Go bin PATH.

go get -u github.com/afritzler/awesaml

Or you can fetch the latest binary release via

curl -L -o awesaml "https://github.com/afritzler/awesaml/releases/download/v0.2.1/awesaml_0.2.1_linux_amd64" && chmod +x awesaml

All release build can be found in the release section here.

Build locally from source

AweSAML is build using go modules. Make sure to set GO111MODULE=on before continuing.

git clone https://github.com/afritzler/awesaml
cd awesaml
make

A Docker based build is available

make docker-build

Usage

Running Locally

Your static web content (aka Service Provider) must have a X.509 key pair established. This typically has to be shared with your IDP provider as well. If you don't have a key pair and certificate at hand you can quickly generate it via

openssl req -x509 -newkey rsa:2048 -keyout myservice.key -out myservice.cert -days 365 -nodes -subj "/CN=myservice.example.com"

Next up is the configuration of your service provider. Adapt the following configuration to your setup (source_me.example)

export ENTITY_ID="myEntityID"
export SERVICE_URL="http://localhost:8000"
export SERVICE_PORT="8000" # 8000 is the default
export CONTENT_DIR="public/" # that is where you static content resides on this machine
export IDP_METADATA_URL="http://myAwesomeIDP/saml2/metadata"
export CERT_FILE="myservice.cert" # path to cert and key file
export KEY_FILE="myservice.key"

In a nutshell

cp source_me.example source_me
# set the env vars in the source_me file according to your setup
source source_me
awesaml

You should now be able to access your SAML SSO secured web content here http://localhost:8000.

Acknowledgements

AweSAML is build on the shoulders of giatns and leverages the following modules under the hood

  • crewjam/saml module for the heavy lifting of the SAML flow

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.