Are you planning to do it the old way like zero?
Use a mvc page to do the login, and share cookies and stuff with swagger?
I have simply implemented it, using password grant type of Identity Server.
Of course this may need to be enhanced or replaced with other methods.
see https://github.com/abpframework/abp/compare/maliming/swagger
I try it and chrome blocked by CORS

close chrome CORS policy and it work.
but this way so ugly
There seems to be a problem with your configured cors, see https://docs.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-3.0
We should provide a class library to reuse swagger login functionality. (js,html...)
Such as:
app.UseSwagger();
app.UseSwaggerUIWithAbpLogin(//config);
Already implemented, but we can discuss it.https://github.com/abpframework/abp/commit/3d0573f54c6613f14b37a1fe83e6ed8c2b94cf65
@maliming what is the status/priority of this feature?
hi @leonkosak
it's still in the backlog.
Resolved by https://github.com/abpframework/abp/pull/6124
Most helpful comment
We should provide a class library to reuse swagger login functionality. (js,html...)
Such as: