Configure an HTPasswd Identity Provider in OpenShift 4

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

Welcome to the *Configure an HTPasswd Identity Provider in OpenShift 4* lab. Here is the scenario: You are working for a company called ZLand with a hot new mobile game in the works. You are being asked to set up a development OpenShift cluster for the developers who are excited to start working on the new mobile game, Double Tap! You are being asked to set up the cluster to use the HTPasswd Identity Provider so we can set up the developers’ access to the cluster in the near future.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install CodeReady Containers

Note: If you have taken any of the other labs in the course associated with this lab and have already installed CodeReady Containers, please move on to the Create the HTPasswd File objective. If not, then proceed with this objective.

If you don’t already have a Red Hat login, register at

  • Make the OpenShift_CRC working directory.
  • Download the version of the OpenShift on CodeReady Containers binary for the operating system version you are running.
  • Install OpenShift on CodeReady Containers.
Create the HTPasswd File

Create a HTPasswd file called users.htpasswd and add the admin user with the password doubletap.

Create the HTPasswd Secret

Create a HTPasswd Secret called htpass-secret from the users.htpasswd HTPasswd file you created in the previous step.

Create the HTPasswd Custom Resource

Finally, log in to the cluster as the admin user and confirm you have logged in as admin.

Additional Resources

Why do I have no credentials to login with?

Due to the potentially high resource consumption this lab can create, This lab is to be followed along with on your local machine. This is why there is no resource to log into.

We currently cannot run this in our lab environment, but you can run this locally on your own machine.

This lab is slightly different. Downlaod and set up OpenShift on CodeReady Containers to complete the lab.

Register a login at if you do not have a login.

Go to the Cluster Manager site to download CodeReady Containers at the URL below:

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!