jasester

2818 经验值

你的app是原生的还是web的?,如果是原生的,原生回去调起第三方软件返回token,就像微信登录的话,客户端会返回给服务端一个openid,服务端只要走接下来的验证就行,反正我就是这面做的。

已经决绝了,我把nginx关闭了以后再重新生成,就可以了

楼主根据你的操作我这提示这个

Waiting for verification...
Cleaning up challenges
Failed authorization procedure. ssp.laravter.com (http-01): urn:acme:error:unaut
horized :: The client lacks sufficient authorization :: Invalid response from ht
tp://ssp.laravter.com/.well-known/acme-challenge/Ml92R3GSWn0rNFq3mFF0QhHvcDJy4zf
OKSIFEGpEI90: "<html>
<head>
<meta http-equiv="Content-Type" content="textml;charset=UTF-8" />
   <style>body{background-color:#FFFFFF}</style>"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: ssp.laravter.com
   Type:   unauthorized
   Detail: Invalid response from
   http://ssp.laravter.com/.well-known/acme-challenge/Ml92R3GSWn0rNFq3mFF0QhHvcD
Jy4zfOKSIFEGpEI90:
   "<html>
   <head>
   <meta http-equiv="Content-Type" content="textml;charset=UTF-8" />
      <style>body{background-color:#FFFFFF}</style>"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.

恩对的,已经安装上了,原来很简单的,就一条命令就可以了。。。。

按照你的步骤一步一步安装成功了,但是 Call to undefined function Qiniu\\Http\\curl_init() ,我看了一下phpinfo,因为没有安装curl扩展,能否出一个安装安装php扩展的视频啊

安装php的时候 在 /etc/php/7.1/ 下为啥多出一个apache2, 重启nginx的时候就会报错,这是为啥?

我是第一个。能不能将一下怎么动态加载vue-router 路由?

我现在是,在登录成功后,拿去用户信息的同时,拿去该用户的已经授权的菜单。不知道对不对

其实是两张表,一个admins,一个users,换成auth() 他走的是users这张表,我想要认证admins这张表,不知道描述的清楚吗?

在登录的时候,检测是否激活的时候,我这里出现这种错误,
passport
这是什么问题啊?
这是代码

dd(auth('api')->attempt(['username' => $username, 'password' => \request('password')]));
            $request =  $this->proxy->proxy('password', [
                'username' => $request->get('username'),
                'password' => $request->get('password'),
                'scope' => ''
            ]);
            return $request;

这是auth.php中的guards代码

'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'passport',
            'provider' => 'admins',
        ]
    ],
'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],
        'admins' => [
            'driver' => 'eloquent',
            'model' => App\Models\Admins::class,
        ]
        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

可不可以讲一下,在vue中 怎么实现用户的权限,比如每个用户显示的菜单是不同的