Workshop Exercise 2.1 - Authenticating on our Edge Device

Table of Contents

Objective

In this exercise, we’re going to retrieve our authentication token and use it to authorize on our edge device.

RHSI will use the authentication information stored locally by the oc command, so running these steps will allow us to connect up RHSI in the next exercises.

Step 1 - Retreving our Authorization Token

To grab our token, access the OpenShift web console. In the top right corner, a dropdown menu will have an option called Copy login command, which will open another page. Select this option.

Copy Login Command

Note:

If you are prompted for a username and password, use the same credentials as the OpenShift console.

This new page will display our token, and allow us to copy the login command directly from the top box. This tab can be left open for the next step.

OCP Token

Note:

This is an example token, not a real one.

Step 2 - Authenticating from our Edge Device

Note:

You can access the virtual device also from the Terminal menu inside Cockpit if you want to copy&paste. (Refer back to 1.3 )

The username to access the virtual device is ansible and the password is the one of the student user (you can find the IP address of the virtual device using the command nmcli).

Once inside the terminal view you can copy and paste with SHIFT + INSERT.

The openshift-clients package has been installed on our edge devices as part of the RHDE image, providing us with access to the oc command. As such, we can paste the oc login command from the previous step directly on the command line:

OC Login

If successful, the welcome message should be displayed.


Navigation

Previous Exercise Next Exercise

Click here to return to the Workshop Homepage