I think this solution is overly complex. Is the end goal SSO between the web applications and mobile applications? For example, you use a mobile application, and then open the mobile system browser, and don't want to login again?
If you don't care about SSO, I would simply configure the Gluu Server to use the same password source for authentication (i.e. LDAP), and use the Gluu Server cache refresh service to sync the user attributes.
If you do want SSO, what you're suggesting is actually possible. I think you could use the SAML custom interception script. Here is a link to a [similar use case for the SAML script](https://ox.gluu.org/doku.php?id=asimba:setup_testing#interception_script_configuration) but I think there may be some differences, depending on the IDP that you are using (this script is using the Asimba proxy as the IDP--which you don't need because you only have one inbound SAML IDP).
I think we can help you with this, but you're going to have include a fair amount of information--screenshots, logs, and other material to help us figure out how to configure the script.
One more piece of advice: you should use the appAuth libraries for mobile authentication. You can read my [recent blog](http://gluu.co/appauth-blog)