Skip to content

Instantly share code, notes, and snippets.

@neilherbertuk
Last active December 8, 2022 15:50
Show Gist options
  • Save neilherbertuk/7f66b2296808af744638da61be0d45c8 to your computer and use it in GitHub Desktop.
Save neilherbertuk/7f66b2296808af744638da61be0d45c8 to your computer and use it in GitHub Desktop.
Adding additional links to the OpenIAM Login Screen
package selfservice
import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory
import org.openiam.ui.login.DefaultLoginPageDisplayHandler
import org.openiam.ui.model.Hyperlink
class CustomLoginPageDisplayHandler extends DefaultLoginPageDisplayHandler {
private static final Log log = LogFactory.getLog("CustomLoginPageDisplayHandler")
public CustomLoginPageDisplayHandler() {
log.debug("CustomLoginPageDisplayHandler() called")
}
@Override
public List<Hyperlink> getAdditionalHyperlinks() {
log.debug("getAdditionalHyperlinks() called")
Hyperlink homeLink = new Hyperlink()
homeLink.setHref('https://neilherbert.uk/')
homeLink.setText('Home')
log.debug(homeLink)
return [homeLink] as List
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment