c# api - AuthClient and updating user profile Skip to main content
https://support.okta.com/help/answers?id=906f0000000xzi1iao&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Konstantin BelovKonstantin Belov 

c# api - AuthClient and updating user profile

I want end user to be able to update a property in his/her profile, and I don't want to have any api tokens (especially with administrative access) in the c# code of the program that uses okta authentication.
When user enters username/password to log into the program, I've tried using AuthClient given an empty string as api token, and a valid subdomain in constructor, and then calling Authenticate(), which worked perfectly. AuthResponse indicates success, and Embedded.User is set. But, Embedded.User.Profile does not seem to show any of the custom profile properties. Also, I could not find any way yet to update anything in the profile just with AuthClient or SessionClient interface.
What am I missing? AuthResponse has some SessionToken set, but from the documentation I could not figure out what to do with it.
Please shed some light on this topic.
ThomasThomas (Okta, Inc.) 
Here is a script that you may find helpful in identifying the right AuthResponse:

http://stackoverflow.com/questions/31617290/exception-when-calling-okta-authentication

There is a set of other related insights at the http://developer.okta.com site too.

Tom