Custom mapping for user_login
-
I have the below SAML response and i need to map the UserLoginID to user_login. How do i do that in the settings UI? Thanks.
<?xml version="1.0" encoding="UTF-8" ?>
<saml2p:Response Destination="https://website.school/wp-login.php?saml_acs" ID="_933b0511-1f86-4dc4-8559-4a55faf1e48a" IssueInstant="2024-06-14T15:12:42.206Z" Version="2.0" xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:xsd="https://www.w3.org/2001/XMLSchema">
<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://test.website.nl/login/</saml2:Issuer>
<ds:Signature xmlns:ds="https://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="https://www.w3.org/2001/10/xml-exc-c14n#WithComments"/>
<ds:SignatureMethod Algorithm="https://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
<ds:Reference URI="#_933b0511-1f86-4dc4-8559-4a55faf1e48a">
<ds:Transforms>
<ds:Transform Algorithm="https://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<ds:Transform Algorithm="https://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="xsd" xmlns:ec="https://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="https://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>NjwjDeSYjx99JetZ/ThhgexrKE0tVDubdRQKLJBaq0I=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>mhqxmiYuNg1W+rcBvv/Xdz8UCqC62kW3T+PXS24uLsyjGTcwhZ7481cDIN2v4RSiH1k4v2XCZ5Il3/0ZKcOPj3FhyvTKsryhWDA1qTvDnIE701w74isV2nsyx0luQi5nSZC/50GnITxzLe5LDsMOppiMz0Ds/GeUUB6EzWYU8Dkj98poMRnmlNFPeVwlLw5OWCwBG7G2nrqVj1ihkhMWc1IpNqJkUzBVCt/9Y4F/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oT6nLSyJXoFaWN4OrJSnMRi4tltyyLHhRRmnfny8+R/FHX68j7zvdQ9YJKGP+NAtia8TYgH+DCcE6iWXcI/Y7D60YYQ6T+uux2rkuGIGym4Mq3Nq0MLXjE=</ds:Modulus>
<ds:Exponent>AQAB</ds:Exponent>
</ds:RSAKeyValue>
</ds:KeyValue>
</ds:KeyInfo>
</ds:Signature>
<saml2p:Status>
<saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
</saml2p:Status>
<saml2:Assertion ID="_9d5302b9-a20a-4890-aa3f-688e8943605f" IssueInstant="2024-06-14T15:12:42.206Z" Version="2.0" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:type="saml2:AssertionType">
<saml2:Issuer>https://test.website.nl/login/</saml2:Issuer>
<saml2:Subject>
<saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" NameQualifier="UserLoginID">116924</saml2:NameID>
<saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml2:SubjectConfirmationData NotBefore="2024-06-14T15:12:22.206Z" NotOnOrAfter="2024-06-14T15:13:02.206Z" Recipient="https://website.school/wp-login.php?saml_acs"/>
</saml2:SubjectConfirmation>
</saml2:Subject>
<saml2:Conditions NotBefore="2024-06-14T15:12:22.206Z" NotOnOrAfter="2024-06-14T15:13:02.206Z">
<saml2:AudienceRestriction>
<saml2:Audience>https://website.school/wp-login.php?saml_acs</saml2:Audience>
<saml2:Audience>https://website.school/wp-login.php?saml_acs/</saml2:Audience>
</saml2:AudienceRestriction>
</saml2:Conditions>
<saml2:AuthnStatement AuthnInstant="2024-06-14T15:12:42.206Z" SessionIndex="_9d5302b9-a20a-4890-aa3f-688e8943605f">
<saml2:AuthnContext>
<saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</saml2:AuthnContextClassRef>
</saml2:AuthnContext>
</saml2:AuthnStatement>
<saml2:AttributeStatement>
<saml2:Attribute FriendlyName="employeeNumber" Name="employeeNumber" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xsd:string">116924</saml2:AttributeValue>
</saml2:Attribute>
</saml2:AttributeStatement>
<saml2:AttributeStatement>
<saml2:Attribute FriendlyName="nlEduPersonHomeOrganizationId" Name="nlEduPersonHomeOrganizationId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xsd:string">90LB00</saml2:AttributeValue>
</saml2:Attribute>
</saml2:AttributeStatement>
<saml2:AttributeStatement>
<saml2:Attribute FriendlyName="bpInstellingId" Name="bpInstellingId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xsd:string">15415</saml2:AttributeValue>
</saml2:Attribute>
</saml2:AttributeStatement>
</saml2:Assertion>
</saml2p:Response>
- You must be logged in to reply to this topic.