package com.ctrip.xpipe.api.sso;

import java.util.regex.Pattern;

/**
 * @author wenchao.meng
 *         <p>
 *         Jun 12, 2017
 */
public class SsoConfig {

    public static final String excludeRegex = "/api/.*|/health|/fireman/.*";

    public static boolean stopsso = false;

    public static boolean excludes(String url){

        if(stopsso){
            return  true;
        }
        return Pattern.matches(SsoConfig.excludeRegex, url);
    }

}


package com.ctrip.xpipe.api.sso;

import java.util.regex.Pattern;

/**
 * @author wenchao.meng
 *         <p>
 *         Jun 12, 2017
 */
public class SsoConfig {

    public static final String excludeRegex = "/api/.*|/health|/fireman/.*|/webjars/.*";

    public static boolean stopsso = false;

    public static boolean excludes(String url){

        if(stopsso){
            return  true;
        }
        return Pattern.matches(SsoConfig.excludeRegex, url);
    }

}


add fireman front end resource to sso white list