SAML SSO GOOGLE 能够在 delphi 客户端桌面应用程序 + mfa 中验证 gmail 帐户

问题描述

在我们的 Delphi 桌面应用程序中,我们目前使用一个简单的 SAML 请求检查 Office365 中用户的凭据,该请求类似于下面的代码片段。我们可以设法发布这个soap请求,并使用端点、用户名和密码来检查用户是否正确输入了凭据,因此,我们让用户进入应用程序。 我们正在尝试使用相同的登录程序,但用于 Google 帐户。有没有一种方法可以在不使用浏览器的情况下检查凭据。有没有我们可以检查的API?如果没有,有没有人可以帮助我们提出想法。或者我们可以使用谷歌身份验证器吗? 赞赏。 谢谢你们

    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
              xmlns:a="http://www.w3.org/2005/08/addressing"
              xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
          <s:Header>
            <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</a:Action>
            <a:ReplyTo>
             <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
            </a:ReplyTo>
            <a:To s:mustUnderstand="1">https://login.microsoftonline.******</a:To>
            <o:Security s:mustUnderstand="1"
               xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-*******t-1.0.xsd">
              <o:Usernametoken>
                <o:Username>{username}</o:Username>
                <o:Password>{password}</o:Password>
             </o:Usernametoken>
            </o:Security>
          </s:Header>
          <s:Body>
            <t:RequestSecurityToken xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust">
              <wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
                <a:EndpointReference>
                  <a:Address> {ENDPOINT}</a:Address>
                </a:EndpointReference>
             </wsp:AppliesTo>
              <t:KeyType>http://schemas.xmlsoap.org/ws/******</t:KeyType>
              <t:RequestType>http://schemas.xmlsoap.org/*******</t:RequestType>
              <t:TokenType>*******</t:TokenType>
            </t:RequestSecurityToken>
          </s:Body>
        </s:Envelope>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...