rnewton / opauth_reddit
Reddit strategy for Opauth
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/rnewton/opauth_reddit
Requires
- php: >=5.2.0
- opauth/opauth: >=0.2.0
This package is not auto-updated.
Last update: 2025-12-20 23:51:50 UTC
README
Opauth strategy for Reddit authentication.
Implemented based on https://github.com/reddit/reddit/wiki/OAuth2
Opauth is a multi-provider authentication framework for PHP.
Getting started
-
Install Opauth-Reddit:
composer require rnewton/opauth_reddit
-
Create a Reddit app https://www.reddit.com/prefs/apps/
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
http://path_to_opauth/reddit/oauth2callback
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
-
Configure Opauth-Reddit strategy.
-
Direct user to
http://path_to_opauth/redditto authenticate
Strategy configuration
Required parameters:
<?php 'Reddit' => array( 'key' => 'YOUR CLIENT ID', 'secret' => 'YOUR CLIENT SECRET' )
License
Opauth-Reddit is MIT Licensed
Copyright © 2015 Robert Newton