简体   繁体   English

Identity Server 3令牌验证

[英]Identity Server 3 token validation

How can we validate token generated from another client, on mobile if the app has link which passes token to the website, that website has some controller which accept token , how to authenticate user with access_token? 如果应用程序具有将令牌传递到网站的链接,我们如何在移动设备上验证从另一个客户端生成的令牌,该网站具有一些接受令牌的控制器,如何使用access_token对用户进行身份验证?

Is there a method in identity server 3 which validate access_token? 身份服务器3中是否有一种方法可以验证access_token?

There is a built-in endpoint in indentityserver 3 which validate token, it can be called using GET or post by passing token and the response status code can tell if it is valid or not. indentityserver 3中有一个用于验证令牌的内置终结点,可以使用GET调用它,也可以通过传递令牌来进行发布,并且响应状态代码可以告诉它是否有效。

more information 更多信息

Also, it can be validated using JwtSecurityTokenHandler (). 另外,可以使用JwtSecurityTokenHandler()进行验证。 ValidateToken () method. ValidateToken()方法。 it will ClaimsPrincipal. 它将ClaimsPrincipal。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM