Skip to content

Commit bbc1f54

Browse files
committed
OCPBUGS-32090: Re-add docs about LookupMappingMethod
1 parent fc50a7f commit bbc1f54

File tree

3 files changed

+44
-56
lines changed

3 files changed

+44
-56
lines changed

_unused_topics/identity-provider-provisioning-user-lookup-mapping.adoc

Lines changed: 0 additions & 56 deletions
This file was deleted.

authentication/understanding-identity-provider.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,10 @@ include::modules/authentication-remove-kubeadmin.adoc[leveloffset=+1]
7878
include::modules/identity-provider-parameters.adoc[leveloffset=+1]
7979

8080
include::modules/identity-provider-default-CR.adoc[leveloffset=+1]
81+
82+
include::modules/identity-provider-provisioning-user-lookup-mapping.adoc[leveloffset=+1]
83+
84+
[role="_additional-resources"]
85+
.Additional resources
86+
* link:https://access.redhat.com/solutions/6006921[How to create user, identity and map user and identity in LDAP authentication for `mappingMethod` as `lookup` inside the OAuth manifest]
87+
* link:https://access.redhat.com/solutions/7072510[How to create user, identity and map user and identity in OIDC authentication for `mappingMethod` as `lookup`]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * authentication/understanding-identity-provider.adoc
4+
5+
[id="identity-provider-provisioning-user-lookup-mapping_{context}"]
6+
= Manually provisioning a user when using the lookup mapping method
7+
8+
Typically, identities are automatically mapped to users during login. The `lookup` mapping method disables this automatic mapping, which requires you to provision users manually. If you are using the `lookup` mapping method, use the following procedure for each user after configuring the identity provider.
9+
10+
.Prerequisites
11+
12+
* You have installed the {oc-first}.
13+
14+
.Procedure
15+
16+
. Create an {product-title} user:
17+
+
18+
[source,terminal]
19+
----
20+
$ oc create user <username>
21+
----
22+
23+
. Create an {product-title} identity:
24+
+
25+
[source,terminal]
26+
----
27+
$ oc create identity <identity_provider>:<identity_provider_user_id>
28+
----
29+
+
30+
Where `<identity_provider_user_id>` is a name that uniquely represents the user in the identity provider.
31+
32+
. Create a user identity mapping for the created user and identity:
33+
+
34+
[source,terminal]
35+
----
36+
$ oc create useridentitymapping <identity_provider>:<identity_provider_user_id> <username>
37+
----

0 commit comments

Comments
 (0)