Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Problem

Hide button 'Sign in With Google' and 'Sign Up' for mobile App

Solution 

This can be done by passing the query parameter with the login URL.

Implementation

By default, this button will be hidden on the page so that it won't be displayed in the older app version.
The buttons will be only displayed when if it finds `version=1` in query params. We can read this query parameter value in keycloak login theme javascript file and show these buttons. 
Query parameter name:
The proposed name for query parameter is version because if needed in future we can increase the version value and perform the additional logic on that as we as we can maintain backward compatibility if needed.
Note: As of now there is no way available in keycloak to read custom query parameter in .ftl file. 
 E.g.

Cons
  • login URL change will be needed in the portal as well as in tenant pages. 

  • No labels