Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

...

  • Se definen de manera estática los diferentes tipos de autenticaciones
  • En el método setCasUser se hace la distinción de si estamos recibiendo un correo electrónico (acceso CAS) o un DNI (acceso con certificado)
  • El método verificarAuthMethodSSO comprueba el tipo de autenticación
  • El método verificaUserSSO se ha adaptado para la nueva funcionalidad
  • Especial atención 

...

Bloque de código
package intercambio.com.authentication.exceptions;

public class AuthenticationMethodNotSupportedException extends RuntimeException {

	private static final long serialVersionUID = -7140000370097499128L;

	private static final String MENSAJE = "Authentication method not supported: ";

	public AuthenticationMethodNotSupportedException( String message ) {
		super( MENSAJE + message );
	}

	public AuthenticationMethodNotSupportedException( Throwable cause ) {
		super( MENSAJE, cause );
	}

	public AuthenticationMethodNotSupportedException( String message, Throwable cause ) {
		super( MENSAJE + message, cause );
	}
}


config.xml

  • Se ha añadido el método <METODO NAME="verificarAuthMethodSSO" TO="LIKE" />
Bloque de código
<!-- Index -->
	<OPERACION NAME="entrada">
		<BEAN NAME="intercambio.intercambioPAS.VerificaUser" CONEXION="SI">
			<METODO NAME="saveUserNavigator" SERVICE="LIKE" />
			<METODO NAME="setupCasUser" SERVICE="LIKE" />
			<METODO NAME="verificarAuthMethodSSO" TO="LIKE" />
			<METODO NAME="verificaUserSSO" TO="Usuario" />
			<METODO NAME="getUserLogin" TO="UserLogin" />
			<METODO NAME="getUserID" TO="UserID" />
			<METODO NAME="getUserLetra" TO="UserLetra" />
			<METODO NAME="getUserName" TO="UserName" />
			<METODO NAME="getUserMail" TO="mailAcc" />
		</BEAN>
		<SALIDA>
			<XSL ID="HTML" FILE="entrada.xsl" OUT-TYPE="text/html">
				<PARAM NAME="srv" FROM="URL" />
			</XSL>
		</SALIDA>
	</OPERACION>