Send feedback
  
   
 
  
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
    
  
  
   
  
  
    
    
  
  firebase:: auth:: OAuthProvider 
  
    #include <credential.h>
  
  OAuth2.0+UserInfo auth provider (OIDC compliant and non-compliant). 
  Summary 
  
    
      
        Public static functions 
       
     
    
      
        GetCredential (const char *provider_id, const char *id_token, const char *access_token)
       
      
        
        Generate a credential for an OAuth2 provider. 
       
     
    
      
        GetCredential (const char *provider_id, const char *id_token, const char *raw_nonce, const char *access_token)
       
      
        
        Generate a credential for an OAuth2 provider. 
       
     
  
  Public static functions 
  
    GetCredential 
    
Credential   GetCredential ( 
   const   char   * provider_id , 
   const   char   * id_token , 
   const   char   * access_token 
)  
    
      Generate a credential for an OAuth2 provider. 
      
      
        
          Details 
         
        
          
            Parameters 
            
              
                
                  
                    
                      provider_id
                     
                    
                      Name of the OAuth2 provider TODO(jsanmiya) add examples. 
                     
                   
                  
                    
                      id_token
                     
                    
                      The authentication token (OIDC only). 
                     
                   
                  
                    
                      access_token
                     
                    
                      TODO(jsanmiya) add explanation (currently missing from Android and iOS implementations). 
                     
                   
                 
              
             
           
         
      
     
   
  
    GetCredential 
    
Credential   GetCredential ( 
   const   char   * provider_id , 
   const   char   * id_token , 
   const   char   * raw_nonce , 
   const   char   * access_token 
)  
    
      Generate a credential for an OAuth2 provider. 
      
      
        
          Details 
         
        
          
            Parameters 
            
              
                
                  
                    
                      provider_id
                     
                    
                      Name of the OAuth2 provider. 
                     
                   
                  
                    
                      id_token
                     
                    
                      The authentication token (OIDC only). 
                     
                   
                  
                    
                      raw_nonce
                     
                    
                      The raw nonce associated with the 
Auth  credential being created. 
 
                     
                   
                  
                    
                      access_token
                     
                    
                      The access token associated with the 
Auth  credential to be created, if available. This value may be null. 
 
                     
                   
                 
              
             
           
         
      
     
   
  
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2024-01-23 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[]]