跳到主内容

OpenShift

OpenShift支持OIDC,所以我们可以将Casdoor与OpenShift集成。 以下步骤演示了如何使用Casdoor在线演示将Casdoor与OpenShift Local集成。

Step 1: Create a Casdoor application

In Casdoor add an application. Note Client ID and Client secret. Set Redirect URL to https://oauth-openshift.apps.<cluster_name>.<cluster_domain>/* (adjust for your cluster).

在Casdoor中创建一个应用

步骤2:OpenShift OAuth配置

现在以Kubeadmin的身份登录OpenShift控制台。 登录后,浏览侧边菜单并找到集群设置。

OpenShift侧边菜单

Under Global Configuration, open OAuth.

集群设置中的OAuth配置

In Identity ProviderADD, select OpenID Connect.

选择菜单

Enter Client ID and Client secret from step 1. Set Issuer URL to https://<casdoor-host> (HTTPS required).

配置OIDC

步骤3:测试OIDC身份验证

Open the OpenShift console in a browser. Select the Casdoor login option (the name configured above); you are redirected to the Casdoor login page.

最终结果