Error opening SSO Webview on subsequent attempts

I have an android application that implements the Android Lock SDK to do home realm discovery, i am able to login and everything works fine (on iOS), but on Android if i hit login to load my SAML login screen in the embedded browser a second time i get the error “The request URL was rejected. Please consult with your administrator.”. If i clear the chrome cookies manually this error goes away but only for the next attempt.

Steps to reproduce:

  • enter SSO home realm email
  • password field will dissapear
  • hit login button
  • SSO login html page loads
  • close browser/ cancel SSO login to go back to lock screen
  • hit login again
  • Error

same thing happens if i log in and log out and try to login again, this is also not an issue on iOS implementation.

Any thoughts?