@Test void setupRealmFromHeader() { MockHttpServletRequest request = new MockHttpServletRequest(); request.addHeader(SecurityConstants.REALM_HEADER, "realm"); authenticationRealmAwareFilter.setupRealmFromHeader(request); String actualRealm = oidcAuthenticationHelper.getRealmForCurrentRequest(); assertThat(actualRealm, is("realm")); }
void setupRealmFromHeader(HttpServletRequest request) { String realm = request.getHeader(SecurityConstants.REALM_HEADER); oidcAuthenticationHelper.setRealmForCurrentRequest(realm); }
AuthenticationRealmAwareFilter implements Filter { void setupRealmFromHeader(HttpServletRequest request) { String realm = request.getHeader(SecurityConstants.REALM_HEADER); oidcAuthenticationHelper.setRealmForCurrentRequest(realm); } }
AuthenticationRealmAwareFilter implements Filter { void setupRealmFromHeader(HttpServletRequest request) { String realm = request.getHeader(SecurityConstants.REALM_HEADER); oidcAuthenticationHelper.setRealmForCurrentRequest(realm); } @Autowired  AuthenticationRealmAwareFilter(OidcAuthenticationHelper oidcAuthenticationHelper); }
AuthenticationRealmAwareFilter implements Filter { void setupRealmFromHeader(HttpServletRequest request) { String realm = request.getHeader(SecurityConstants.REALM_HEADER); oidcAuthenticationHelper.setRealmForCurrentRequest(realm); } @Autowired  AuthenticationRealmAwareFilter(OidcAuthenticationHelper oidcAuthenticationHelper); @Override void init(FilterConfig filterConfig); @Override void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain); @Override void destroy(); @Value("${security.oidc.AuthenticationRealmAwareFilter.enable:true}") void setEnableFilter(boolean enableFilter); @Value("${security.oidc.AuthenticationRealmAwareFilter.realmUrlPattern:}") void setRealmUrlPattern(String realmUrlPattern); @Value("${security.oidc.AuthenticationRealmAwareFilter.filterApplyUrlRegex:}") void setFilterApplyUrlRegex(String filterApplyUrlRegex); @Value("${security.oidc.AuthenticationRealmAwareFilter.realmParamName:realm}") void setRealmParamName(String realmParamName); @Value("${security.oidc.AuthenticationRealmAwareFilter.isRealmMandatory:true}") void setRealmMandatory(boolean realmMandatory); @Value("#{'${security.oidc.AuthenticationRealmAwareFilter.filterApplyUrlList:}'.split(',')}") void setFilterApplyUrlList(List<String> filterApplyUrlList); @Value("#{'${security.oidc.AuthenticationRealmAwareFilter.filterIgnoreUrlList:}'.split(',')}") void setFilterIgnoreUrls(List<String> filterIgnoreUrlList); @Override String toString(); }
AuthenticationRealmAwareFilter implements Filter { void setupRealmFromHeader(HttpServletRequest request) { String realm = request.getHeader(SecurityConstants.REALM_HEADER); oidcAuthenticationHelper.setRealmForCurrentRequest(realm); } @Autowired  AuthenticationRealmAwareFilter(OidcAuthenticationHelper oidcAuthenticationHelper); @Override void init(FilterConfig filterConfig); @Override void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain); @Override void destroy(); @Value("${security.oidc.AuthenticationRealmAwareFilter.enable:true}") void setEnableFilter(boolean enableFilter); @Value("${security.oidc.AuthenticationRealmAwareFilter.realmUrlPattern:}") void setRealmUrlPattern(String realmUrlPattern); @Value("${security.oidc.AuthenticationRealmAwareFilter.filterApplyUrlRegex:}") void setFilterApplyUrlRegex(String filterApplyUrlRegex); @Value("${security.oidc.AuthenticationRealmAwareFilter.realmParamName:realm}") void setRealmParamName(String realmParamName); @Value("${security.oidc.AuthenticationRealmAwareFilter.isRealmMandatory:true}") void setRealmMandatory(boolean realmMandatory); @Value("#{'${security.oidc.AuthenticationRealmAwareFilter.filterApplyUrlList:}'.split(',')}") void setFilterApplyUrlList(List<String> filterApplyUrlList); @Value("#{'${security.oidc.AuthenticationRealmAwareFilter.filterIgnoreUrlList:}'.split(',')}") void setFilterIgnoreUrls(List<String> filterIgnoreUrlList); @Override String toString(); static final String BASE_REALM_REGEX; }