[英]IdentityServer3 get user token by username and password post REQUEST
我发现此教程用于通过用户名和密码进行身份验证并从身份服务器获取令牌:
https://identityserver.github.io/Documentation/docs/overview/simplestOAuth.html
随处可见,URL如下所示:
&grant_type=password&username=aa&password=aa
我的问题是,我是否还需要示例中的EmbeddedAuthorizationServer
或可以直接调用SSO服务器?
我想将用户名和密码发布到SSO服务器并返回令牌。 可能吗?
IdentityServer3支持所谓的资源所有者密码凭证流。
https://tools.ietf.org/html/rfc6749#section-4.3
https://identityserver.github.io/Documentation/docsv2/endpoints/token.html
所以答案是肯定的。
编辑:修复了将文档移至docsv2时死的IdServer-Link
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.