Ignore:
Timestamp:
Sep 7, 2018 2:56:38 AM (14 months ago)
Author:
ming
Message:

Fixed #2148: Add parsing support for the OAuth 2.0 authentication mechanism

Thanks to Joshua Colp for the patch submission.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_auth_msg.h

    r3553 r5883  
    9090 
    9191/** 
     92 * This structure describe credential used in Authorization and 
     93 * Proxy-Authorization header for OAuth authentication scheme. 
     94 */ 
     95struct pjsip_oauth_credential 
     96{ 
     97    pj_str_t    realm;          /**< Realm of the credential    */ 
     98    pjsip_param other_param;    /**< Other parameters.          */ 
     99    pj_str_t    username;       /**< Username parameter.        */ 
     100    pj_str_t    token;          /**< Token parameter.           */ 
     101}; 
     102 
     103/** 
     104 * @see pjsip_oauth_credential 
     105 */ 
     106typedef struct pjsip_oauth_credential pjsip_oauth_credential; 
     107 
     108/** 
    92109 * This structure describes SIP Authorization header (and also SIP 
    93110 * Proxy-Authorization header). 
     
    107124        pjsip_digest_credential digest; /**< Digest credentials.    */ 
    108125        pjsip_pgp_credential    pgp;    /**< PGP credentials.       */ 
     126        pjsip_oauth_credential  oauth;  /**< OAuth credentials.     */ 
    109127    } credential; 
    110128}; 
Note: See TracChangeset for help on using the changeset viewer.