withfatpanda/auth-plugin-wordpress 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

withfatpanda/auth-plugin-wordpress

Composer 安装命令:

composer require withfatpanda/auth-plugin-wordpress

包简介

Social login and registration, built with Bamboo and powered by Laravel Socialite

README 文档

README

Packagist Patreon

This project is a work in progress. It should be considered an unstable experiment until otherwise advertised herein—not for production use. Thank you.

This plugin expands WordPress' core authentication features:

Features in our roadmap:

  • Log in via one-time links sent to e-mail (i.e., Magic Links)
  • Designate which roles are given to Users when they register
  • Protect your site from spam and abuse with reCAPTCHA
  • Two-factor authentication via SMS

This plugin is free to use in any project (public, private, non-profit and for-profit; dual licensed GPLv2 and MIT).

Requirements

  • PHP >= 5.6.4
  • WordPress >= 4.0
  • Bedrock

Installation

Use Composer to add this plugin as a dependency to your Bedrock-based WordPress installation:

composer require withfatpanda/auth-plugin-wordpress

Configuration

For each third-party service you wish to employ in authentication, you will need a driver, a client ID, and a client secret.

Out of the box, this plugin makes available six drivers: facebook, twitter, linkedin, google, github, and bitbucket.

Note: In addition to these built-in drivers, there are almost 100 socialite drivers available through the community-driven Socialite Providers project, but to use any one of them, you must do some additional setup work (see Using Third-Party Providers below).

For each provider you wish to enable for authentication:

  1. Create a relationship with the provider; for example, if you want to enable Facebook as a login provider, you must first create a Facebook app. This process will be slightly different for each provider, and is beyond the scope of this documentation. Good luck!

  2. Get the public ID and secret key for each of your apps; again, this is outside the scope of this documentation.

  3. Install these values into your Bedrock environment as follows:

SERVICES_FACEBOOK_CLIENT_ID=Public ID
SERVICES_FACEBOOK_CLIENT_SECRET=Secret Key

Where FACEBOOK should be the name of the driver you're configuring.

  1. Also in your Bedrock environment, you will need to install a list of the drivers you are using, as follows:
SOCIALITE_PROVIDERS=facebook,twitter,google
  1. If you haven't done so yet, activate the plugin!
wp plugin activate auth-plugin-wordpress
  1. Flush your cached rewrite rules; this plugin adds two rewrite rules—one for inititing the OAuth flow, and another for handling the response from the auth providers. You can flush your rewrite rules with WP-CLI, as follows:
wp rewrite flush

Using Third-Party Providers

To be written.

About This Project

This plugin is the first to be built with the illuminate-wordpress project.

illuminate-wordpress, powered by the Laravel Framework, provides developers with an expressive, beautiful syntax for building faster for WordPress. Extending WordPress' REST API, defining custom data types and taxonomies, querying the database, and much more are all made easier through a semantic, object-oriented API. The objective of illuminate-wordpress is to allow the entire community of Laravel developers to fall in love with WordPress the way that we have fallen in love with Laravel.

This project in particular depends heavily on Laravel Socialite—a library that handles almost all of the boilerplate social authentication code that all developers dread writing.

About Fat Panda

Fat Panda is a software product consultancy located in Winchester, VA. We specialize in Laravel, WordPress, and Ionic. No matter where you are in the development of your product, we'll meet you there and work with you to propel you forward.

Contributing

If you run into a problem using this plugin, please open an issue.

If you want to help make this plugin amazing, check out the help wanted list.

If you'd like to support this and the other open source projects Fat Panda is building, please join our community of supporters on Patreon.

withfatpanda/auth-plugin-wordpress 适用场景与选型建议

withfatpanda/auth-plugin-wordpress 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 12, 最近一次更新时间为 2016 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 withfatpanda/auth-plugin-wordpress 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 withfatpanda/auth-plugin-wordpress 我们能提供哪些服务?
定制开发 / 二次开发

基于 withfatpanda/auth-plugin-wordpress 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPLv2
  • 更新时间: 2016-12-01