Skip to content

moznion/OAuth2TokenVendingServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth2TokenVendingServer

Access token vending server for OAuth2

Over View

  1. Access & Authenticate

    https://dl.dropboxusercontent.com/u/14832699/OAuth2TokenVendingServer/top.png

  2. You've got an access token

    https://dl.dropboxusercontent.com/u/14832699/OAuth2TokenVendingServer/token.png

Getting Started

  1. carton install
  2. $ carton install
    
  3. Edit `config/production.pl`
  4. +{
        app_name    => '__YOUR_APP_NAME__',
        description => '__YOUR_APP_DESCRIPTION__',
    
        client_id     => '__YOUR_APP_CLIENT_ID__',
        client_secret => '__YOUR_APP_CLIENT_SECRET__',
    
        authorize_uri    => 'http://example.com/authorize',
        access_token_uri => 'http://example.com/access_token',
        redirect_uri     => 'http://URL_TO_THIS_SERVER.com/token', # <= Perhaps, it should be blank (e.g. on GitHub OAuth)
    
        scope => [qw/read write/],
    };
    
  5. Start server
  6. $ carton exec -- plackup -E production script/oauth2tokenvendingserver-server
    

See Also

OAuth1TokenVendingServer

LICENSE

Copyright (C) moznion.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

About

Access token vending server for OAuth2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages