// Path: rock-paper-scissors-lizard-spock/src/main/java/be/ordina/jworks/rpsls/game/Player.java
// @Getter
// @Builder
// @AllArgsConstructor
// public class Player implements Serializable {
// 
//     private String username;
//     private String image;
//     private String url;
// }


import be.ordina.jworks.rpsls.game.Player;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.social.connect.Connection;
import java.util.Collections;
package be.ordina.jworks.rpsls.configuration;



@Slf4j
public class AuthenticationUtil {

    public static void authenticate(Connection<?> connection) {
// Path: rock-paper-scissors-lizard-spock/src/main/java/be/ordina/jworks/rpsls/game/Player.java
// @Getter
// @Builder
// @AllArgsConstructor
// public class Player implements Serializable {
// 
//     private String username;
//     private String image;
//     private String url;
// }


// Path: rock-paper-scissors-lizard-spock/src/main/java/be/ordina/jworks/rpsls/configuration/AuthenticationUtil.java
import be.ordina.jworks.rpsls.game.Player;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.social.connect.Connection;
import java.util.Collections;

package be.ordina.jworks.rpsls.configuration;



@Slf4j
public class AuthenticationUtil {

    public static void authenticate(Connection<?> connection) {
        Player player = Player.builder()