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

com.racquettrack.security.oauth.OAuth2PostCreatedOrEnabledUserService Maven / Gradle / Ivy

The newest version!
package com.racquettrack.security.oauth;

import org.springframework.security.core.userdetails.UserDetails;

import java.util.Map;

/**
 * An extension point for the OAuth2 authentication mechanism that allows an application to perform
 * arbitrary actions after the user has been created or become enabled.
 * @author pwheeler
 * @see OAuth2UserDetailsService
 */
public interface OAuth2PostCreatedOrEnabledUserService {

    /**
     * Extension point to allow some actions to be taken after a user has been created or become enabled.
     * @param userDetails The {@link UserDetails} object created by
     * {@link OAuth2UserDetailsLoader#createUser(Object, Map)}
     * @param userInfo A map representing the user information returned from the OAuth Provider.
     */
    void postCreatedOrEnabledUser(UserDetails userDetails, Map userInfo);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy