mirror of
https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC.git
synced 2024-12-22 12:30:16 +02:00
tweaked url
This commit is contained in:
parent
74d97827f8
commit
1e26f83db2
@ -117,11 +117,14 @@ class HomeFragment : Fragment() {
|
|||||||
intentParams.setAuthUrl(requireActivity().intent.data!!.getQueryParameter("authUrl")!!)
|
intentParams.setAuthUrl(requireActivity().intent.data!!.getQueryParameter("authUrl")!!)
|
||||||
intentParams.setOrigin(requireActivity().intent.data!!.getQueryParameter("originUrl")!!)
|
intentParams.setOrigin(requireActivity().intent.data!!.getQueryParameter("originUrl")!!)
|
||||||
*/
|
*/
|
||||||
val getAuthChallengeUrl = requireActivity().intent.data!!.getQueryParameter("getAuthChallengeUrl")!!
|
var getAuthChallengeUrl = requireActivity().intent.data!!.getQueryParameter("getAuthChallengeUrl")!!
|
||||||
val postAuthTokenUrl = requireActivity().intent.data!!.getQueryParameter("postAuthTokenUrl")!!
|
getAuthChallengeUrl = getAuthChallengeUrl.substring(1, getAuthChallengeUrl.length - 1)
|
||||||
|
var postAuthTokenUrl = requireActivity().intent.data!!.getQueryParameter("postAuthTokenUrl")!!
|
||||||
|
postAuthTokenUrl = postAuthTokenUrl.substring(1, postAuthTokenUrl.length - 1)
|
||||||
val headers = requireActivity().intent.data!!.getQueryParameter("headers")!!
|
val headers = requireActivity().intent.data!!.getQueryParameter("headers")!!
|
||||||
intentParams.setAuthUrl(postAuthTokenUrl)
|
intentParams.setAuthUrl(postAuthTokenUrl)
|
||||||
intentParams.setOrigin("https://" + URL(getAuthChallengeUrl).host)
|
val address = "https://" + URL(getAuthChallengeUrl).host
|
||||||
|
intentParams.setOrigin(address)
|
||||||
intentParams.setHeaders(headers)
|
intentParams.setHeaders(headers)
|
||||||
Ion.getDefault(activity).conscryptMiddleware.enable(false)
|
Ion.getDefault(activity).conscryptMiddleware.enable(false)
|
||||||
Ion.with(activity)
|
Ion.with(activity)
|
||||||
|
Loading…
Reference in New Issue
Block a user