登录应用程序时链接验证问题

时间:2019-03-22 05:58:17

标签: debugging oauth linkedin

我有一个应用程序,允许用户使用OAuth身份使用LinkedIn进行登录。我们在登录身份验证方面遇到问题。最近几天它已经成功地工作了,但是现在他们要求执行以下步骤:

Example

但是没有空格输入验证码。我认为这是LinkedIn的更新。

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>LinkedIn Login Integration</title>
    <script type="text/javascript" src="//platform.linkedin.com/in.js">
      api_key: "81xxxxxxxx"
      authorize: false
      onLoad:  onLinkedInLoad
    </script>

    <script type="text/javascript">
      function onLinkedInLoad() {
        IN.Event.on(IN, 'auth', handleOnLoad)
      }

      function handleOnLoad(obj) {
        console.log('authorized success')
      }

      function authenticateUser() {
        IN.User.authorize(callbackFunction)
      }

      function callbackFunction() {
        console.log('callbackFunction fired')
      }
    </script>
  </head>
  <body>
    <h1>LinkedIn</h1>
    <input type="button" value="authenticate" onclick="authenticateUser()" />
  </body>
</html>

谢谢!

0 个答案:

没有答案
相关问题