Skip to content

Latest commit

 

History

History
83 lines (56 loc) · 2.68 KB

README.MD

File metadata and controls

83 lines (56 loc) · 2.68 KB

Red Hat Single Sign On Walkthrough

Description

The purpose of this workshop is to show a step-by-step hands-on covering basic capabilities from Red Hat Single Sign ON using a sample application js-console

js-console, ldap, mailhog and Red Hat SSO running on Openshift.

For instructor only

RHPDS

If you want to use it on RHPDS, create a new Openshift environment using OCP 4.4.

User Projects

# change this according to the number of expected users
NUMBER_OF_USERS=5

for userNumber in $(seq 1 $NUMBER_OF_USERS); do
  oc adm new-project sso${userNumber} --admin=user${userNumber}

  # For now, ldap container requires root. See issue #1
  oc adm policy add-scc-to-user anyuid -z default -n sso${userNumber}
done

Etherpad

To install etherpad, please check https://github.com/luszczynski/openshift-etherpad

Documentation

Local

To test the documentation locally, run

docker run -it --rm -p 8080:8080 -v $(pwd)/docs:/app-data \
              -e CONTENT_URL_PREFIX="file:///app-data" \
              -e LOG_TO_STDOUT=true \
              -e WORKSHOPS_URLS="file:///app-data/_workshop.yml" \
              quay.io/jamesfalkner/workshopper

Now open http://localhost:8080

Openshift

To deploy the documentation on Openshift, run:

# Usually there is no need to change these vars
WORKSHOP_URL=https://raw.githubusercontent.com/luszczynski/rhsso-walkthrough/master/docs/_workshop.yml
ISSUES_URL=https://github.com/luszczynski/rhsso-walkthrough/issues

# Change these vars according to your environment
MASTER_URL=https://console-openshift-console.apps.cluster-brasilia-d6ec.brasilia-d6ec.example.opentlc.com/
ETHERPAD_URL=http://etherpad-etherpad.apps.cluster-brasilia-d6ec.brasilia-d6ec.example.opentlc.com/p/workshop
TERMINAL_URL=https://terminal-terminal.apps.cluster-brasilia-d6ec.brasilia-d6ec.example.opentlc.com/
OPENSHIFT_API_URL=https://api.cluster-brasilia-da5c.brasilia-da5c.example.opentlc.com:6443

oc new-project workshopper --display-name="Workshopper"
oc new-app quay.io/jamesfalkner/workshopper --name=workshopper \
      -e WORKSHOPS_URLS="$WORKSHOP_URL" \
      -e ISSUES_URL=$ISSUES_URL \
      -e OPENSHIFT_MASTER_URL=$MASTER_URL \
      -e ETHERPAD_URL=$ETHERPAD_URL \
      -e TERMINAL_URL=$TERMINAL_URL \
      -e OPENSHIFT_API_URL=$OPENSHIFT_API_URL \
      -e LOG_TO_STDOUT=true -n workshopper

oc expose svc/workshopper -n workshopper