Using 3rd-party identity providers is simple ... until you need auth for Swagger😱 or need to write a client #47461
Labels
area-identity
Includes: Identity and providers
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
Milestone
Originally posted by @davidfowl in #42158 (comment)
The main story of simply adding auth isn't my complaint. The actual real-world story of adding auth with all the extras is where I don't think I should have to write so much code and it should be easy for identity vendors to expose what's needed to identity consumers, such as Swagger, that we don't need to glue them together.
Here's what I need to glue Okta and Swagger together:
I would like it that when I add an identity vendor's auth implementation, it would either automatically provide the
OpenApiSecurityScheme
andOpenApiSecurityRequirement
or make it a simple option to ask it to provide them. And then Swagger would automatically know where to find them.Similarly on the client side, there is no standard way to take an
IHttpClientBuilder
and add an OAuth bearer token to its calls from such-and-such a vendor's identity server according to some configuration. I wrote much more code than I can snip here to create a standard way for our shop. I'd open source it if my company allowed, but this should already be part of Microsoft.Extensions anyway.The text was updated successfully, but these errors were encountered: