KeyCloak and Portal on the same fqdn?

as in Reconfigure UCS Single Sign On

can i archive this with keycloak? i already fail to setup the basic keycloak app let alone trying to bend it into the same fqdn, any kind of hint is welcome. :confused:

Mastodon