org.apereo.cas.mgmt.CasManagementUtils Maven / Gradle / Ivy
package org.apereo.cas.mgmt;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.boot.autoconfigure.web.ServerProperties;
/**
* This is {@link CasManagementUtils}.
*
* @author Misagh Moayyed
* @since 5.2.0
*/
public final class CasManagementUtils {
private CasManagementUtils() {}
/**
* Gets default callback url.
*
* @param casProperties the cas properties
* @param serverProperties the server properties
* @return the default callback url
*/
public static String getDefaultCallbackUrl(final CasConfigurationProperties casProperties, final ServerProperties serverProperties) {
try {
return casProperties.getMgmt().getServerName().concat(serverProperties.getContextPath()).concat("/manage.html");
} catch (final Exception e) {
throw new BeanCreationException(e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy