How to incorporate audience in OidcClient? #244
              
                
                  
                  
                    Answered
                  
                  by
                    wcabus
                  
              
          
                  
                    
                      FlominatorTM
                    
                  
                
                  asked this question in
                Open Source
              
            -
| I'm using Duende.IdentityModel.OidcClient in a c# application with auth0. Login works well, but now I'm told, that I'm supposed to add an audience parameter to the initial "authorize" request url. Does that make any sense? If yes: how can I do that? var browser = new WinFormsWebView2.WinFormsWebView(m_strWindowTitle);
var options = new OidcClientOptions
{
	Authority = AUTHORITY,
	ClientId = CLIENT_ID,
	Scope = "openid email api", /* openid email api offline_access */
	RedirectUri = "https://some_site/ok",
	Browser = browser
};
_oidcClient = new OidcClient(options);Thanks a lot | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            wcabus
          
      
      
        Jun 24, 2025 
      
    
    Replies: 1 comment 3 replies
-
| If you need to pass additional parameters to the authorize endpoint during a  var loginResult = _oidcClient.LoginAsync(new LoginRequest
{
    FrontChannelExtraParameters =
    {
        { "audience", "your_audience_value_here" }
    }
}); | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        FlominatorTM
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
If you need to pass additional parameters to the authorize endpoint during a
LoginAsynccall, you can add aLoginRequestas the first parameter: