Falcon.SugarApi/Falcon.SugarApi/FalconClaim/Readme.md

7 lines
547 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FalconClaim 使用说明:
1. 用户登录模块提供了UserLoginModel和UserLoginResult类分别负责提供登录凭据和登录结果可以扩展使用当然也可以使用自己的模型类。
> 1.通过UserLoginModel提供的凭据验证用户合法性。
> 2.通过ITokenBuilter.GetToken方法获取登录token。该方法需要一个Claim列表该列表至少应包含一个name和role声明表示登录的用户名和角色也可以根据需要增加其他声明。
> 3.构造UserLoginResult对象返回token。