定制 aradiv/yii2-authclient-telegram 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aradiv/yii2-authclient-telegram

最新稳定版本:v0.0.1

Composer 安装命令:

composer require aradiv/yii2-authclient-telegram

包简介

Telegram Auth for yii2-authclient

README 文档

README

Yii2 Latest Stable Version Packagist

Yii2 Authclient Telegram

Since Telegram doent offer a direct real oAuth method this authclient utilizes Telepass.me until there is a native OAuth login with Telegram.

Installation:

composer require --prefer-dist aradiv/yii2-authclient-telegram

##Usage: in your config add:

    'components' => [
        'authClientCollection' => [
            'class' => 'yii\authclient\Collection',
            'clients' => [
                'telegram' => [
                    'class' => 'aradiv\yii2\authclient\telegram\Client,
                    'clientId' => '<yourTelepassClientId'>
                    'clientSecret' => '<yourTelepassClientSecret'>
                ]
            ],
        ],
        // ...
    ],

Why I don't use the Telegram Login Widget

The Telegram Login Widget works fine standalone. Integrating it as an additional login method while maintaining compatibility to other modules that utilize Yii2 Authclient isn't possible without doing all kinds special case handling and in some cases even change the entire user flow.

So to be able to

  1. Login with Telegram and
  2. keep using the modules I'm used to

I decided to relay on telepass.me for telegram login until there is an authclient compatible way for native telegram login.

统计信息

  • 总下载量: 870
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-28