统一未向我提供用户密码和用户名 [英] Unification not providing me user password and username

查看:200
本文介绍了统一未向我提供用户密码和用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Instagram共享时,如何从Instagram(当前登录用户)获取用户名和密码.

When I am using Instagram sharing then how can I get username and password from Instagram (current login user).

$app = new UEApp(self::APP_SECRET, self::APP_SECRET);
$user = new UEUser($this->currentUser->unification_userkey, $this->currentUser->unification_usersecret);
$con = $access_token."@instagram.com/?username=rajneesh49&password=test&@instagram.com";

现在我正在使用静态密码和用户名,然后可以正常工作,但是如何获取当前的用户名和密码(由统一引擎提交)

Now I am using static password and username then its working fine but How can I get current username and password(required filed by unification engine)

用户名和密码都是统一引擎的必填字段.

username and password both are required fields by unification engine.

如何在php代码中获取此密码和用户名以实现统一引擎共享.

How can I get this password and username in php code for unification engine sharing.

身份验证仅提供此信息

Array
(
    [access_token] => 4544942713.7da612b.4de7a5a78fba2b27a60dc1749d
    [user] => Array
        (
            [id] => 45434542713
            [username] => rajneesh8469
            [profile_picture] => https://scontent.cdninstagram.com/t51.2885-19/s150x150/16229522_1877141895853233_7596497588304478208_a
.jpg
            [full_name] => Rajneesh
            [bio] => Testing website
            [website] => http://localhost:3000/
  ))

但是只有密码丢失了,所以如何获取当前的用户密码.

But only password is missing so how can I get current user password.

推荐答案

此问题与任何代码均不相关,或者与统一性无关,仅与安全性验证有关.我已在同一共享中解决了同一问题,但已通过身份验证解决了此问题,请根据应用进行以下更改

This problem not related with any code or unification its only related with Security validation. I have fixed same issue in same sharing but I have fixed this problem by authentication please do below some changes as per application

  1. 创建Instagram身份验证
  2. 获取用户名(仅用户名身份验证不提供密码)
  3. 在退出的应用程序中打开用户验证"弹出窗口(然后显示用户名并询问用户,请输入密码)
  4. 请不要将用户密码保存在您的数据库中(与安全性有关)
  5. 然后使用相同的参数进行共享

仅根据密码进行更改:

$con = $access_token."@instagram.com/?username=".$username.'&password='.$password&@instagram.com";

请按照安全性社交网络进行此操作,以证明按应用程序具有良好的安全性(Instagram的安全性也很好).

please do this as per security social networking proving good security as per application(Instagram is good as per security) .

这篇关于统一未向我提供用户密码和用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆