I'm working on a demo app on Android in which we are trying to integrate SSO in a webview. After entering the credentials on the login page, I'm able to capture the final redirect URL to the POST response page via the WebViewClient. I need to capture the SAMLResponse to obtain information stored within.
I realize that there is a mobile API specifically for Android, but that is overkill for what I'm trying to do and this app will be branded and configured for clients who may have a different identity provider. I'm looking for a pure JAVA solution.
How do get the SAMLResponse using either HttpUrlConnection or HttpPost?
I was able to get this to work on iOS utilizing URLProtocol and URLSessions.
Any help or suggestions would be greatly appreciated.
Please sign in to leave a comment.