github

command
v0.0.0-...-61fa54b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2013 License: MIT Imports: 4 Imported by: 0

README

Demo for authenticating a user with the Github OAuth2 API.

Running the demo requires some basic setup and configuration, detailed below.

###Register Application You will need to login to your Github account and register an application to get a Client Id and Secret Key.

  • Go to https://github.com/settings/applications
  • Click the "Register New Application" button
  • Give your application an awesome name
  • Set the Main URL to http://localhost:8080/
  • Set the Callback URL to http://localhost:8080/auth/login
  • Click the "Register Application" button

When you click the Register Application button you will be given the Client Id and Secret Key, which will look something like this:

ClientId: a69c7cca3b3121a40934
Secret:   1ac41f49814k9asdfs9fd798we87s8f79904abaa91ac

###Required Flags In order to start the application you will need to pass in the Client Id and Secret Key as args:

./github -client_key a69c7cca3b3121a40934 -secret_key 1ac41f49814k9asdfs9fd798we87s8f79904abaa91ac

You can then visit your application at http://localhost:8080/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL