125
Views
2
Comments
[IdP] OKTA SAML - Loading the attributes into Users
Question
idp
Web icon
Forge asset by João Barata

We are able to successful create a user account and login however the firstname, lastname and email address fields in the user module are not being populated.  We can see them in the attribute fields of the SAML message so we are recieveing them.  Do we need to populate the claims on the SP configuration and if so with what URL?


   

2017-02-16 19-26-26
Telmo Martins
Staff

Hi Paul,

You need to check on your SAML response message the name of the attributes. It should be something like

...

<saml2:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" Name="MyEmail">
<saml2:AttributeValue xmlns:xs="https://www.w3.org/2001/XMLSchema" xsi:type="xs:string" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">myemail@mail.com</saml2:AttributeValue>
</saml2:Attribute>

...

So, based in the example above to configure the email claim you need to set "MyEmail" on the Claims Email attribute like on the image attach.


Regards

idp_example.PNG
2019-03-13 07-21-40
Adrian

Telmo Martins wrote:

Hi Paul,

You need to check on your SAML response message the name of the attributes. It should be something like

...

<saml2:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" Name="MyEmail">
<saml2:AttributeValue xmlns:xs="https://www.w3.org/2001/XMLSchema" xsi:type="xs:string" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">myemail@mail.com</saml2:AttributeValue>
</saml2:Attribute>

...

So, based in the example above to configure the email claim you need to set "MyEmail" on the Claims Email attribute like on the image attach.


Regards

Hi,

The following configuration works for OKTA:

in IdP:


The username is the e-mail address (from OKTA user name), the user full name and tel number come from OKTA.


Kind Regards,

Adrian

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.