获取简短声明类型名称 [英] Get short claim type name
本文介绍了获取简短声明类型名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Asp.Net Core和ASP.NET Identity,当我获得声明类型时,我会得到类似
I am using Asp.Net Core and ASP.NET Identity and when I get a Claim type I get something like
"type":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
"value":"123"
如何仅获取简单类型名称,例如:
How to get only the simple type name, e.g.:
"type":"nameidentifier",
"value":"123"
我知道有可能我只是找不到解决方法.
I know this is possible I just can't find the solution.
推荐答案
查看全文