Hey All, GoodData user and trying to work get our ...
# gooddata-platform
s
Hey All, GoodData user and trying to work get our instance to work with our identity provider and running into an error: Unable to authenticate: error: [invalid_user_info_response] An error occurred reading the UserInfo response: Missing attribute 'name' in attributes.
p
Hi @Steve Fox, this is a question which more belongs to the #gooddata-cn channel.
Anyway, could you please tell which Identity Provider do you use? Thanks. For the explanation, the
name
attribute (claim) is mandatory for the GD.CN or Cloud platforms. This claim should be obtained in the OpenID ID Token and the inclusion of this claim should be easily configurable in any provider.
s
Ah ok. Technically we’re using GoodData cloud but good to know. We’re using IdentityServer4 as our identity provider.
p
Probably this could help: https://identityserver4.readthedocs.io/en/latest/topics/resources.html#identity-resources
The following example shows a custom identity resource called profile that represents the display name, email address and website claim:
public static IEnumerable<IdentityResource> GetIdentityResources()
{
return new List<IdentityResource>
{
new IdentityResource(
name: “profile”,
userClaims: new[] { “name”, “email”, “website” },
displayName: “Your profile data”)
};
}
s
So just so I understand the name is part of the profile response of the token.