Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DevProxy.Plugins/Mocking/AuthPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public override async Task InitializeAsync(InitArgs e, CancellationToken cancell
return;
}

await SetupOpenIdConnectConfigurationAsync();
await SetupOpenIdConnectConfigurationAsync(Configuration.OAuth2.MetadataUrl);
}

Enabled = false;
Expand Down Expand Up @@ -187,12 +187,12 @@ public override Task BeforeRequestAsync(ProxyRequestArgs e, CancellationToken ca
return Task.CompletedTask;
}

private async Task SetupOpenIdConnectConfigurationAsync()
private async Task SetupOpenIdConnectConfigurationAsync(string metadataUrl)
Comment thread
waldekmastykarz marked this conversation as resolved.
{
try
{
var retriever = new OpenIdConnectConfigurationRetriever();
var configurationManager = new ConfigurationManager<OpenIdConnectConfiguration>("https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", retriever);
var configurationManager = new ConfigurationManager<OpenIdConnectConfiguration>(metadataUrl, retriever);
Comment thread
waldekmastykarz marked this conversation as resolved.
_openIdConnectConfiguration = await configurationManager.GetConfigurationAsync();
}
catch (Exception ex)
Expand Down