简体   繁体   English

远程登录身份服务器3

[英]remote login identityserver3

I'm currently trying to connect my existing behaviour into IdentityServer3. 我当前正在尝试将现有行为连接到IdentityServer3。 What I want to happen is when I post my login form back with username and password I can call my IdentityServer and authenticate in a single post request. 我想发生的是,当我使用用户名和密码将登录表单发回时,我可以调用IdentityServer并在单个发帖请求中进行身份验证。 Are there existing helpers to support this? 是否有现有的助手来支持这一点? Sorry If this has been asked I've been trawling around all day and haven't found anything. 抱歉,如果有人问我,我整天都在拖网捕捞,却没有发现任何东西。

So I have figured this out after loads of reading and playing, basically what I wanted was the resourceOwner flow which would allow me to authenticate without the browser. 因此,在经过大量阅读和播放之后,我已经弄清楚了这一点,基本上我想要的是resourceOwner流,该流将使我无需浏览器即可进行身份验证。 This isn't recommended as you loose the sso benefits. 不建议您这样做,因为您失去了sso的好处。 The other approach I looked at was to pass the post form values, username and password to the preauthenticate method on identity server. 我研究的另一种方法是将邮寄表格的值,用户名和密码传递给身份服务器上的preauthenticate方法。 This seemed extremely hacky to me. 对我来说,这似乎很不客气。 I'll probably just use the normal flow if the client will allow it. 如果客户端允许,我可能只会使用常规流程。

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

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