简体   繁体   English

使用 Web 浏览器的 wpf 桌面应用程序的 OIDC/OAuth SSO

[英]OIDC/OAuth SSO from wpf desktop app using web browser

We have our custom IDP which implements the OIDC/OAuth2 standards and many of our browser based SPA apps use it for authn/authz (With SSO).我们有实现 OIDC/OAuth2 标准的自定义 IDP,我们的许多基于浏览器的 SPA 应用程序将其用于 authn/authz(使用 SSO)。 We also have some of our apps which are WPF desktop based.我们还有一些基于 WPF 桌面的应用程序。 Now, our requirement is to implement similar OIDC/OAuth SSO from desktop app by launching a browser from the desktop application and then once the sign in is complete come back to the desktop app (SSO).现在,我们的要求是通过从桌面应用程序启动浏览器来从桌面应用程序实现类似的 OIDC/OAuth SSO,然后在登录完成后返回桌面应用程序 (SSO)。

This is something very similar to how Docker desktop works which launches a browser for sign-in and then redirects back to the desktop application.这与 Docker 桌面的工作方式非常相似,它启动浏览器进行登录,然后重定向回桌面应用程序。 Anybody can suggest what is the right way to implement this and any reference to sample implementation would be greatly appreciated.任何人都可以建议什么是正确的方法来实现这一点,任何对示例实现的参考将不胜感激。

Thanks谢谢

The system browser is used to login, according to RFC8252 .系统浏览器用于登录,根据RFC8252 I believe Docker desktop uses a private URI schene to receive the OAuth response.我相信 Docker 桌面使用私有 URI 模式来接收 OAuth 响应。

See these resources.请参阅这些资源。 My app is coded in Javascript but you should be able to translate the concepts:我的应用程序是用 Javascript 编码的,但您应该能够翻译这些概念:

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

相关问题 使用 WinForms 应用程序进行 OAuth/OIDC SSO 的最佳实践? - Best practice for OAuth/OIDC SSO with a WinForms app? 使用角度angular-oauth2-oidc和SSO的OAuth2 - OAuth2 using angular angular-oauth2-oidc and SSO 来自已经是 OIDC/OAuth 的单页反应应用程序的 Power BI SSO - Power BI SSO from single page react app which is already OIDC/OAuth 从桌面应用程序使用AppHarbor oauth api - Using the AppHarbor oauth api from a desktop app RESTful API 使用 OAuth2 / OIDC 进行身份验证和 SSO - RESTful API Authentication and SSO with OAuth2 / OIDC 如何配置 Spring Boot 以使用 AWS Cognito (OAuth2/OIDC) 对 Web 应用程序用户和 REST 客户端进行身份验证 - How to configure Spring Boot to authenticate Web-app users and REST clients using AWS Cognito (OAuth2/OIDC) 来自桌面应用程序的 OAuth2 身份验证代码 - OAuth2 authentication code from desktop app 将 Facebook iOS SSO 用于封装的 Web 应用程序? - Using Facebook iOS SSO for a wrapped web app? oAuth2 Web请求在浏览器中有效,但在应用程序中无效 - oAuth2 web request works in browser but not in app 使用OAuth2.0为iOS应用中的多个目标配置SSO - Configuring SSO using OAuth2.0 for multiple targets in iOS app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM