How to configure SAML authentication in Excel Add-ins

I am using a .Net 4.8 VSTO Excel Add-ins application. Its fetching a data from a Okta SAML integrated website.
I have tried using webview2 login using userid and password but at the time of API call to the website data is not fetched.
Previously, I used ADFS I am trying to replace ADFS by Okta.

Hope I am making sense. If Anyone can help me it will be great.
Thanks
#questions #questions:saml #dotnet