Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set OAuthClientId on version 6? #253

Closed
sirdawidd opened this issue Jan 24, 2023 · 2 comments
Closed

How to set OAuthClientId on version 6? #253

sirdawidd opened this issue Jan 24, 2023 · 2 comments
Assignees
Labels
waiting-8-days Closing after 8 days of waiting for the additional info requested.

Comments

@sirdawidd
Copy link

Hello
On version 5.2.0 there was possibility to set OAuthClientId
Option is no more available in the version 6.

app.UseSwaggerForOcelotUI(options =>
        { 
            options.OAuthClientId(swaggerSettings.ClientId);
            options.OAuthUsePkce();
        });
        
@Burgyn
Copy link
Owner

Burgyn commented Jan 24, 2023

Hi,

from version 6.0.0 has UseSwaggerForOcelotUI method new overload with Action<SwaggerUIOptions> setupUiAction = null parameter.

app.UseSwaggerForOcelotUI(opt =>
  {
      opt.DownstreamSwaggerHeaders = new[]
      {
          new KeyValuePair<string, string>("Key", "Value"),
          new KeyValuePair<string, string>("Key2", "Value2"),
      };
  }, c =>
  {
      c.OAuthConfigObject ...
  });

@Burgyn Burgyn added the waiting-8-days Closing after 8 days of waiting for the additional info requested. label Jan 24, 2023
@sirdawidd
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-8-days Closing after 8 days of waiting for the additional info requested.
Projects
None yet
Development

No branches or pull requests

2 participants