001/*
002 *  Copyright 2022 Anyware Services
003 *
004 *  Licensed under the Apache License, Version 2.0 (the "License");
005 *  you may not use this file except in compliance with the License.
006 *  You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *  Unless required by applicable law or agreed to in writing, software
011 *  distributed under the License is distributed on an "AS IS" BASIS,
012 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *  See the License for the specific language governing permissions and
014 *  limitations under the License.
015 */
016package org.ametys.plugins.extrausermgt.authentication.oidc.endofauthenticationprocess;
017
018import org.apache.avalon.framework.component.Component;
019import org.apache.cocoon.environment.Redirector;
020import org.apache.cocoon.environment.Request;
021
022import org.ametys.core.user.population.UserPopulation;
023import org.ametys.runtime.authentication.AccessDeniedException;
024import org.ametys.runtime.exception.ServiceUnavailableException;
025import org.ametys.runtime.plugin.component.AbstractLogEnabled;
026
027/**
028 * Entry point of the end of the authentication process
029 */
030public class EndOfAuthenticationProcess extends AbstractLogEnabled implements Component
031{
032    /** The Avalon role */
033    public static final String ROLE = EndOfAuthenticationProcess.class.getName();
034
035    /**
036     * The user has been authenticated but we might need to sign him in
037     * @param login The email address of the user
038     * @param firstName The user's first name
039     * @param lastName The user's last name
040     * @param userPopulation The user population
041     * @param redirector A redirector
042     * @param request The requests
043     * @throws AccessDeniedException If an error occurs 
044     * @throws ServiceUnavailableException If the server is in maintenance mode
045     */
046    public void unexistingUser(String login, String firstName, String lastName, UserPopulation userPopulation, Redirector redirector, Request request) throws AccessDeniedException, ServiceUnavailableException
047    {
048        // Nothing to do
049    }
050}