我正在使用dotnetopenauth(版本4)来获取我的Api的accessstoken。这工作得很好,但我无法弄清楚我如何读取用户的配置文件信息(由Azure AD b2c发回)。
var authorization = Client.ProcessUserAuthorization();
这将再次向令牌端点发送另一个帖子。响应如下:
{"access_token":"xxxx","token_type":"Bearer","not_before":1519920056,"expires_in":3600,"expires_on":1519923656,"resource":"6ee73e1a-6e96-4ed6-b7f8-a52c1379317a","id_token_expires_in":3600,"profile_info":"eyJ2ZXIiOiIxLjAiLCJ0aWQiOiIyYjIzMTFmMy04ZWNlLTQ3MzMtOWVlNS04ZWMxNzJiOTRjMDMiLCJzdWIiOm51bGwsIm5hbWUiOiJBbGZyZWQgQnJvY2tvdHRlciIsInByZWZlcnJlZF91c2VybmFtZSI6bnVsbCwiaWRwIjpudWxsfQ","refresh_token":"eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ","refresh_token_expires_in":1209600}
如您所见,包含了profile_info(作为base64字符串)。但是IAuthenticationState没有获取此信息的属性或函数:
有没有办法通过dotnetopenauth获得这个额外的响应数据?