The above is able to work for using a POST with the body containing FormsAuthentication/username/password. Trying to move away from the custom written library and move to MSAL.PS to support interactive sessions to do username/password/+MFA authentication.
It is not clear on how to get a JWT with extra claims from an on prem ADFS2019 (non-azure integrated) server.
https://adfs.fqdn/adfs/oauth2/authorize?response_type=id_token&client_id={0}&resource={1}&redirect_uri={2}&response_mode=form_post
The above is able to work for using a POST with the body containing FormsAuthentication/username/password. Trying to move away from the custom written library and move to MSAL.PS to support interactive sessions to do username/password/+MFA authentication.