I’ve downloaded your base MVC app and cannot figure out how to retrieve custom profile attributes for users. I want to manage users and their profiles from within OKTA, but then following login retrieve profile attributes so I can send them on to another application.
I’ve also tried using the OKTA.Core Library and can’t seem to get the profile attributes using it either.
var usersClient = new UsersClient(“xxxxxx”, new Uri(“xxxxxx”));
var user = usersClient.Get("email@example.com");
var custom = user.Profile.GetProperty(“testattr”);