Code Monkey home page Code Monkey logo

samlidp-for-opendistro's Introduction

Docker SAML Identity Provider Test for Open Distro

This repo contains the scripts for building a simple IdP docker image for Open Distro with SAML integration for ElasticSearch. The container is used for development and testing.

Getting started

git clone https://github.com/cyhlll/samlidp-for-opendistro.git

Credit

The docker build scripts are based on simplesamlphp/simplesamlphp

The image is built on official PHP7 Apache.

Supported Docker versions

The images have been tested on Docker 18.09.2.

Usage

docker run --name=samlidp-for-opendistro \
-p 8080:8080 \
-p 8443:8443 \
-d samlidp-for-opendistro

Change the SP entity_id by adding envrionment variable SIMPLESAMLPHP_SP_ENTITY_ID. The default value is SAML-Demo-ID. Make sure the value is identical to the SP.entity_id in ElasticSearch containers.

Change the Kiban url by adding envrionment variable BASE_KIBANA. The default value is http://localhost:5601. Make sure the value is identical to the kibana_url in ElasticSearch containers.

The default image contains eight users for IdP, the first six users is the same as the users in intern-basic authentication, the next two users is for testing.

UID Username Password Role UserID
1 admin admin admin SAMLAdmin
2 readall readall readall SAMLReadall
3 logstash logstash logstash SAMLLogstash
4 snapshotrestore snapshotrestore snapshotrestore SAMLSnapshotrestore
5 kibanaro kibanaro kibanauser,readall SAMLKibanaro
6 readall readall readall SAMLReadall
5 demoUser1 demoUser1 readall DemoUser1
6 demoUser2 demoUser2 readall DemoUser2

You can customize your own users by passing your own authsources.php file.

samlidp-for-opendistro's People

Contributors

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