Giter Club home page Giter Club logo

brion-learns-oauth's Introduction

This is an example of performing OAuth authentication using the Signpost OAuth library in 
an Android application. It provides the basics of authentication via the Twitter OAuth service, 
then allows the student to enter Twitter messages into the authenticated user's stream.

The UI also displays the authenticated user's full name and last 20 records from the user's Home timeline.

You have to register your application with Twitter to get the Consumer Key and Secret. I still (recently) had to
enter a real, actual URL as the app's callback on the Twitter dev site. But you still pass the app's callback during
the OAuth process, just like always.

You will need to supply a MyKeysProvider.java class or rename the default one that looks something like this:

public class DefaultKeysProvider implements KeysProvider {

    @Override
    public String getKey1() {
        // TODO: Set this to your App's Consumer key
        return "Your App's Consumer Key";
    }

    @Override
    public String getKey2() {
        // TODO: Set this to your App's Consumer secret
        return "App Consumer Secret";
    }
}

This software is the result of the work of many others that I researched and is intended for educational 
purposes. This software is not intended to be a complete implementation. 

Unless find a BUG in this code, please don't ask questions about Signpost, how to get your app running or 
anything else.

Copyright 2013 - Brion N. Emde

brion-learns-oauth's People

Contributors

brione avatar

Watchers

 avatar  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.