So looking at your code, I believe I may be able to get it to work, however, I cannot get past the data config infer so there is no generated code.
This is an OData service having OAuth2 openid. Seems when I click Next, Radzen requests $metadata and gets 401 response, then a blank auth popup but no other requests are made.
GET https://sparkplatform.com/openid/authorize?response_type=code&client_id=<XX>&scope=openid&redirect_uri=https%3A%2F%2Fsparkplatform.com%2Foauth2%2Fcallback HTTP/1.1
Yeah, if the $metadata is also behind OAuth Radzen won't be able to retrieve it and infer the data source. I am afraid this isn't supported at the moment. You may have to use a REST data source which doesn't request $metadata.
Thanks for your reply. It would be swell if $metadata request would authenticate first. It acts like it’s try to do so but my OAuth isn’t working.
I have tried rest and have run into the redirect_url isn’t registered so I’ll see if the providers are willing register localhost.
I noticed the RadZen AzureAD scheme uses OpenIdConnect. I think I may need that for this service but not sure. I had to set the authenticationBuilder options.MetadataAddress in Startup.cs. Is there a supported way of customizing startup?