moved custon oauth2 end point uri builder and redirect functions to an uri utility class