문제

I have Thinktecture Identity Server 2 running locally for development purposes and have set up Microsoft Membership as its User storage. I'm using SqlRoleProvider and something called SqlTableProfileProvider and that's all working fine and dandy.

My questions are, what is the best way to access the profile information from within the Relying Party web site (ASP.Net Web Forms) so I can display that profile information to the user? Do I need to configure my web.config with the ProfileProvider information that is also in Identity Server's configs? How do I then programmatically access that profile data from my code behind (C#)?

Any insights would be welcome.

Thank you!

도움이 되었습니까?

해결책

You don't. The profile provider in IdSrv is used to add claims to the outgoing token.

If you really want to access the profile from the RP you would need to add a web service endpoint to IdSrv that exposes it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top