Example framework for XData with Sphinx authentication and authorization

You can use this:

UserName := Info.Profile.Source['user'].AsString;

But if instead user you set the preferred_username claim, then you can read it directly from Info.Profile.PreferredUserName.

1 Like