library opauth_reddit
Reddit strategy for Opauth
rnewton/opauth_reddit
Reddit strategy for Opauth
- Tuesday, June 30, 2015
- by rnewton
- Repository
- 1 Watchers
- 1 Stars
- 6 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 3 Versions
- 0 % Grown
Opauth-Reddit
[Opauth][1] strategy for Reddit authentication., (*1)
Implemented based on https://github.com/reddit/reddit/wiki/OAuth2, (*2)
Opauth is a multi-provider authentication framework for PHP., (*3)
Getting started
-
Install Opauth-Reddit:, (*4)
composer require rnewton/opauth_reddit
-
Create a Reddit app https://www.reddit.com/prefs/apps/, (*5)
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
http://path_to_opauth/reddit/oauth2callback
-
Configure Opauth-Reddit strategy., (*6)
-
Direct user to http://path_to_opauth/reddit to authenticate, (*7)
Strategy configuration
Required parameters:, (*8)
<?php
'Reddit' => array(
'key' => 'YOUR CLIENT ID',
'secret' => 'YOUR CLIENT SECRET'
)
License
Opauth-Reddit is MIT Licensed
Copyright © 2015 Robert Newton, (*9)