• Stars
    star
    174
  • Rank 218,271 (Top 5 %)
  • Language
    PHP
  • Created almost 16 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple, standardized OAuth signature generator
=head1 NAME

OAuthSimple - a very simple OAuth 1.0 signed request generator

=head1 SYNOPSIS

See source comments for usage examples

=head1 DESCRIPTION

OAuthSimple aids in building valid OAuth 1.0 requests. It does not perform
token requests by itself, however you can use it to build the request calls.

I've tried to build the library to be fairly common so that if you're familiar
with how it works in one language, you can use it in any other. Right now the
following languages are supported: PHP, Javascript, Perl, Python. I'd love to add additional
languages and may do so in the future. (I'd be happy to accept contributions,
hint, hint.)

Guido Schlabitz has provided a useful example for how to use
OAuthSimple to connect to Google
L<http://github.com/jrconlin/oauthsimple/blob/master/php/example.php>

Dave Bagler has provided a Composer Package L<https://packagist.org/packages/baglerit/oauthsimple>.
His fork has more details: L<https://github.com/BaglerIT/OAuthSimple>

OAuthSimple accepts arguments in a variety of formats and returns a structure
containing valid elements, including a fully structured URL, an Authorization
header and the signature value. You should only use either the Authorization
Header (as per the spec), or the fully structured URL. (Again, see source
comments for appropriate usage.)

Please note that the Javascript version is not heavily optimized at this time.
If you wish to use a more optimized version, please consult
Anton Byrna's fork
L<http://github.com/itrelease/oauthsimple>

OAuth Developers may be interested in my OAuthTestPage at:
L<http://jrconlin.github.com/OAuthTestPage/>
This will display OAuth1a valid elements and values so you can verify things are working correctly.
=head1 EXAMPLES

Node.js Installation

    > npm install oauthsimple

Node.js Example

    OAuthSimple = require('OAuthSimple')
    oauth = new OAuthSimple("token", "secret")
    request = oauth.sign({
      action: "GET",
      path: "http://api.netflix.com/catalog/people",
      parameters: { term: 'DeNiro' }
    })

    // then use any library to request the following url
    request.signed_url


=head1 LICENSE

Code is released under a BSD licence.


More Repositories

1

pushgo

🚨OBSOLETE🚨 Keeping for historical reasons
Go
23
star
2

sunpower_hass

A Hacky script to fetch solar production information from SunPower
Python
18
star
3

WebPushDataTestPage

Web Push Data Encryption Test Page
JavaScript
15
star
4

geoip_server

Mozilla: A Stand-alone server for the MaxMind GeoIP lookup data
Python
11
star
5

cookie_munger

A stupid idea to abuse the hell out of cookies, because who doesn't like fuzzy cookies?
Python
7
star
6

campaign_manager

Mozilla: Campaign Manager Server
Python
4
star
7

ringtones

A set of easily differentiated ringtones
3
star
8

ppymilter2

Mozilla: ppymilter built off of gevent (rather than asyncore)
Python
3
star
9

DirecTV-Remote

A hacked up JS page to control a directv H series DVR. Because I'm too lazy to get the remote
3
star
10

moz_push

Mozilla: Push notifications
Python
3
star
11

bipostal_dash

Mozilla: New dashboard for BrowserID Postal functions (Forked from jbalogh/bipostal)
JavaScript
3
star
12

topics

Web Push Topic demo code
Python
2
star
13

fncrypto

Mozilla: Firefox Notifications Crypto Lib
Python
2
star
14

CatFacts

CatFacts: A Mozilla Push demo app and server
Python
2
star
15

pushsrv

SimplePush Server (IN DEVELOPMENT)
Python
2
star
16

block-sync

A mastodon admin tool to sync block lists
Python
2
star
17

Webpush_QA

Fully automatic (QA) test page for WebPush
JavaScript
2
star
18

go_pound

SimplePush simultaneous socket tester
Go
2
star
19

awfy

Are We Fired Yet? -- the webapp
Go
2
star
20

server-key-exchange

Mozilla: Adding CORS to JPAKE server
Python
2
star
21

sisyphus

A simplepush test app for monitoring devices
Go
1
star
22

mc_backup

Personal backup of the mozilla-central Mobile branch
Java
1
star
23

jingo

Christmas Carol Bingo
CSS
1
star
24

pushsrv_ws

A SimplePush server with WebSocket Support
Python
1
star
25

bipostal

tbd
Python
1
star
26

plapal

create play lists that are agnostic about music file locations
Python
1
star
27

simplepush_test

🚨🚨🚨 OBSOLETE 🚨🚨🚨 Stand-alone Test Suite for Simplepush servers
Python
1
star
28

bipostal_store

Mozilla: Common BIPostal storage libraries
Python
1
star
29

skeltal_rust

New rust project skeleton
Shell
1
star
30

greasemonkey

Various greasemonkey scripts of low value
JavaScript
1
star
31

Cookbook

A collection of the various recipes I've gathered/collected. PRs welcome
1
star
32

Waffle

An HTML5 sync client
JavaScript
1
star
33

flixo

Netflix API OAuth Walker for firefox
JavaScript
1
star
34

SimplePushDemoApp-Android

A barebones Android app to test SimplePush GCM support
Java
1
star
35

android_hell

A fun place for naughty robots.
PHP
1
star