We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0663272 commit cb038bfCopy full SHA for cb038bf
1 file changed
auth0/src/main/java/com/auth0/android/authentication/AuthenticationAPIClient.kt
@@ -821,8 +821,16 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
821
val credentialsAdapter = GsonAdapter(
822
Credentials::class.java, gson
823
)
824
- return factory.post(url.toString(), credentialsAdapter)
+ val request = factory.post(url.toString(), credentialsAdapter)
825
.addParameters(parameters)
826
+ try {
827
+ DPoPProvider.generateProof(request.getUrl(), request.getHttpMethod().toString())?.let {
828
+ request.addHeader(DPoPProvider.DPOP_HEADER, it)
829
+ }
830
+ } catch (exception: DPoPException) {
831
+ Log.e(TAG, "Error generating DPoP proof: ${exception.stackTraceToString()}")
832
833
+ return request
834
}
835
836
/**
0 commit comments