I have a rest client application and I want to be able to get an access token from ADFS /token endpoint for that client. The client will be used by existing AD Users, and I want to get the Group Membership of the AD User in the access token.
How can I send my AD User Credentials to ADFS and get the AD Group Membership Info of that AD User in the access token as claims?
I know the solution for the case of "/authorize endpoint and entering the credentials in the login popup". What I am asking is how to do that with a client app where the credentials should be somehow encoded and sent to adfs /token endpoint.