AppAuth-Android icon indicating copy to clipboard operation
AppAuth-Android copied to clipboard

client certification

Open emamagic opened this issue 4 years ago • 0 comments

version : 0.11.0 hi guys, I am currently working on an android native app that supports SSO (single-sign-on) by using Keycloak sometimes server needs client certification that is a file.p12, we should install it on our devices first question: is there any way to find out which server needs client certification or not with your library?? (otherwise I have to use web view and override onReceivedClientCertRequest method first)

when we begin to sign in if the server needs client certification custom tabs shows the dialog for choosing the correct certification that is installed on the device for authorization but after that, for getting access token, it failed, it seems to certificate does not set for this request after searching, I figured out that I have to implement my own connection builder and create my own SSLSocketFactory by using correct client certification then request to get access token

second question: is it the correct way for this scenario with your library ??

as I said when our server needs client certification custom tabs shows a dialog for choosing the correct certification

third question: is there any way to access the result of the user choice (because I need that for creating my own SSLSocketFactory) otherwise once I have to show that dialog my self to access the result and after that custom tabs shows the dialog again and user have to choose client certification twice

thanks

emamagic avatar Jan 16 '22 12:01 emamagic