All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.firebus.adapters.http.auth.NoValidator Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package io.firebus.adapters.http.auth;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import io.firebus.Firebus;
import io.firebus.adapters.http.AuthValidationHandler;
import io.firebus.utils.DataMap;

public class NoValidator extends AuthValidationHandler {
	protected String loginUrl;
	
	public NoValidator(DataMap c, Firebus fb) {
		super(c, fb);
		loginUrl = handlerConfig.getString("loginurl");
	}
	

	public String getLoginURL(String originalPath) {
		String url = loginUrl + "?redirect=" + publicHost + originalPath;
		return url;
	}

	protected void httpService(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy