Skip to content

OAuth2 server library (suspended)

License

Notifications You must be signed in to change notification settings

gvaduha/OAuth2CppLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

========================================================================
    OAuth2 CPP 03 Library Project Overview
========================================================================

//TODO:
- make_response analog to make_error_response (could be good extension point to support JSON, 302 Redirect replies or custom peculiar types)
- Make request.CONTEXT.getUserID() (it will eliminate dependence on UserAuthN)
- Make interface for storage policies
- URI as class
- Review URI parsing against RFC3986 #3
- Remove logic from storage (if any)
- Make language resource loader Interface

//HACK:
- RS not check token type in TokenValidator
- RS only check grant in TokenValidator


class RFC_values_for_grant_types
{
    //Implicit Grant
    //
    //Authorization Request:
    //----------------------
    //response_type REQUIRED == "token".
    //client_id REQUIRED RFC6749 Section 2.2.
    //redirect_uri OPTIONAL RFC6749 Section 3.1.2.
    //scope OPTIONAL RFC6749 Section 3.3.
    //state RECOMMENDED
    //
    //Authorization Response:
    //-----------------------

    //Resource Owner Password Credentials Grant
    //
    //Authorization Request and Response - NO
    //
    //Access Token Request:
    //---------------------
    //grant_type REQUIRED == "password".
    //username REQUIRED
    //password REQUIRED
    //scope OPTIONAL RFC6749 Section 3.3.
    //
    //Access Token Response:
    //----------------------
    //

    //Client Credentials Grant
    //
    //Authorization Request and Response - NO
    //
    //Access Token Request:
    //---------------------
    //grant_type REQUIRED == "password".
    //scope OPTIONAL RFC6749 Section 3.3.
    //
    //Access Token Response:
    //----------------------
    //
};