GithubHelp home page GithubHelp logo

pombredanne / foauth.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from foauth/foauth.org

0.0 2.0 0.0 1.45 MB

foauth.org makes OAuth optional. A Runscope Community Project.

Home Page: https://foauth.org/

License: BSD 3-Clause "New" or "Revised" License

Shell 0.06% HTML 19.58% Python 75.14% CSS 5.22%

foauth.org's Introduction

foauth.org: OAuth for one

OAuth is a great idea for interaction between big sites with lots of users. But, as one of those users, it's a pretty terrible way to get at your own data. That's where foauth.org comes in, giving you access to these services using HTTP Basic, which is easily available in hundreds of existing tools, such as requests

>>> import requests
>>> auth = '[email protected]', 'password'
>>> data = {'status': "Just signed up with http://foauth.org/ and it's awesome! Thanks @Gulopine!"}
>>> requests.post('https://foauth.org/api.twitter.com/1/statuses/update.json', data=data, auth=auth)
>>> r = requests.get('https://foauth.org/api.twitter.com/1/statuses/user_timeline.json', auth=auth)
>>> r.json[0]['text']
"Just signed up with http://foauth.org/ and it's awesome! Thanks @Gulopine!"

Implementation

foauth.org uses the OAuth support from requests (powered by oauthlib) to handle the OAuth signatures, behind Flask for interacting with users. Currently, requests and oauthlib only fully support OAuth 1.0, so the current crop of supported providers only includes those that use 1.0. Once requests and oauthlib land full support for OAuth 2.0, another list of providers can be added as well.

Providers themselves are implemented as Python classes that inherit from base OAuth support. This means that new providers can be requested and added using GitHub's pull requests. Documentation for how to define these provider classes is still forthcoming.

Credits

A Runscope Community Project. Originally created by Marty Alchin.

foauth.org's People

Contributors

arturdryomov avatar beaumartinez avatar chrisdrackett avatar giantspatula avatar gtaylor avatar gulopine avatar johnsheehan avatar ryangwu82 avatar solarce avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.