Okta Swagger integration in ASP.NET Core

Hi everyone,

I’m looking for a way to integrate swagger and okta, by this I mean I would like to allow the user to authenticate in swagger and get an acces token to be used for testing.
Our current configuration consists of:

An SPA application configuren in Okta
A React client secured using Okta’s SDK
An ASP.NET core API secured with OKTA and documented with Swagger UI

So far I could’t find a way or a resource explaining how to integrate swagger and OKTA in order to get an access token just like the react application does to consume the API, I also tried to get a token using postman following this link https://developer.okta.com/docs/guides/implement-oauth-for-okta/request-access-token
but the access token obtained is incomplete (lacks of profile information needed to execute the endpoints).

Does anybody knows how to accomplish this?

@Pakun Which attribute you failed to retrieve in a token? Did you include profile in the scope? Here is a way to add customized attribute to the token: https://support.okta.com/help/s/article/How-to-add-custom-attributes-of-user-profile-as-claims-in-token?language=en_US
Also, for Swagger Integration, can you please refer the solution on stack overflow and see if it is helpful?