Implement SSO on my asp.net core mvc web applocation

Hi I am trying to implement SSO on my asp.net core mvc web applocation.

I have following as domain in appsettings:

“OktaDomain”: “https://dotnet-sdk-idx.okta.com

The response I get is a 401 from.
https://dotnet-sdk-idx.okta.com/api/v1/authn

What I could be doing wrong here