Skip to content

gguuss/oauth2-tester

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

OAuth 2.0 Tester

This simple app lets you perform various OAuth 2.0 flows for testing from the command line.

For testing, you can configure a client from https://console.developers.google.com and then can use the values from there in client_secrets.json. There is also a test page that you can use to get exchangeable auth codes and tokens.

Run python -m SimpleHTTPServer 8000 and navigate to localhost:8000/testpage.html for the utility / test page.

Note This is a work in progress and may not work at all yet.

Usage

oauth2-tester.rb command <code> || <access token> <refresh token> <id token>

Accepted commads are:

  • code - code exchange, requires <code>
  • ioscode - code exchange from iOS
  • call - API call, requires <access token> / <refresh token>
  • info - Gets inforamtion about an ID / Access token

About

Just a quick and dirty tool for testing OAuth 2.0 tokens in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages