如何使用Identity Server 4使用桌面/移动应用程序登录

Tin*_*ren 7 asp.net-core identityserver4

我们有一个.Net核心身份服务器,一个.Net Core Api,我们的客户端是桌面和移动应用程序.

通过文档查看我们的用户似乎需要使用混合流程登录,但似乎此流程适用于Web浏览器应用程序.

验证我的桌面用户并授予他们访问Api的正确流量/ grant_type是什么?

lea*_*ege 7

混合流是正确的。请参阅此规范:

https://tools.ietf.org/html/draft-ietf-oauth-native-apps-09

你可以使用这个库:https : //github.com/IdentityModel/IdentityModel.OidcClient2

这里有一些示例:https : //github.com/IdentityModel/IdentityModel.OidcClient.Samples

  • 您可以 - 但您可能会错过一些功能 https://vimeo.com/171942749 (4认同)
  • 有没有办法仍然使用 ID4 进行登录,但不需要网络浏览器加载登录页面?我的移动应用程序用户很难等待网络浏览器正确加载。 (3认同)