Hi @Shiv Khullar ,
I believe https://learn.microsoft.com/en-us/azure/architecture/multitenant-identity/client-assertion is what you're looking for. It has a sample REST call you would make for client assertion
POST https://login.microsoftonline.com/b9bd2162xxx/oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
resource=https://tailspin.onmicrosoft.com/surveys.webapi
&client_id=87df91dc-63de-4765-8701-b59cc8bd9e11
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
&client_assertion=eyJhbGci...
&grant_type=authorization_code
&code= PG8wJG6Y...
I wasn't able to find any code samples using client assertion but since the SDK is open source, perhaps this could be a useful guide. If you don't find what you're looking for, I would suggest creating a new issue in the repo.
Regards,
Ryan