Adding a new method parseTokenResponse to IAcquireMicrosoftStsTokenStrategy interface to handle processing response from server for TokenRequest
Why
The method is used processes and decrypts (if encrypted) the response body returned from server to
MicrosoftTokenResponse JSON response format string.
If Server returns an encrypted response (PRT protocol), we need to decrypt it before serializing it to TokenResponse object. This method is used to perform the decryption.
This change also removes the acquireToken method from the interface. This is to separate the responsibility perfroming token requests from request creation and response processing.
More details in the related Broker PR https://github.com/AzureAD/ad-accounts-for-android/pull/2638
What
Adding a new method
parseTokenResponse
toIAcquireMicrosoftStsTokenStrategy
interface to handle processing response from server for TokenRequestWhy
The method is used processes and decrypts (if encrypted) the response body returned from server to MicrosoftTokenResponse JSON response format string. If Server returns an encrypted response (PRT protocol), we need to decrypt it before serializing it to TokenResponse object. This method is used to perform the decryption.
This change also removes the acquireToken method from the interface. This is to separate the responsibility perfroming token requests from request creation and response processing. More details in the related Broker PR https://github.com/AzureAD/ad-accounts-for-android/pull/2638
Related
Broker PR: https://github.com/AzureAD/ad-accounts-for-android/pull/2638