JAVA-960: Migrate spring-social-login to com.baeldung

This commit is contained in:
Krzysztof Woyke 2020-03-19 14:56:31 +01:00
parent a94b56c74e
commit b1cc7f4337
9 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
package org.baeldung.config; package com.baeldung.config;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
@ -7,8 +7,8 @@ import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@SpringBootApplication @SpringBootApplication
@EnableJpaRepositories("org.baeldung.persistence.dao") @EnableJpaRepositories("com.baeldung.persistence.dao")
@EntityScan("org.baeldung.persistence.model") @EntityScan("com.baeldung.persistence.model")
public class Application extends SpringBootServletInitializer { public class Application extends SpringBootServletInitializer {
public static void main(String[] args) { public static void main(String[] args) {

View File

@ -1,7 +1,7 @@
package org.baeldung.config; package com.baeldung.config;
import org.baeldung.security.FacebookSignInAdapter; import com.baeldung.security.FacebookSignInAdapter;
import org.baeldung.security.FacebookConnectionSignup; import com.baeldung.security.FacebookConnectionSignup;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
@ -18,7 +18,7 @@ import org.springframework.social.connect.web.ProviderSignInController;
@Configuration @Configuration
@EnableWebSecurity @EnableWebSecurity
@ComponentScan(basePackages = { "org.baeldung.security" }) @ComponentScan(basePackages = { "com.baeldung.security" })
public class SecurityConfig extends WebSecurityConfigurerAdapter { public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired @Autowired

View File

@ -1,4 +1,4 @@
package org.baeldung.config; package com.baeldung.config;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

View File

@ -1,6 +1,6 @@
package org.baeldung.persistence.dao; package com.baeldung.persistence.dao;
import org.baeldung.persistence.model.User; import com.baeldung.persistence.model.User;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User, Long> { public interface UserRepository extends JpaRepository<User, Long> {

View File

@ -1,4 +1,4 @@
package org.baeldung.persistence.model; package com.baeldung.persistence.model;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;

View File

@ -1,9 +1,9 @@
package org.baeldung.security; package com.baeldung.security;
import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
import org.baeldung.persistence.dao.UserRepository; import com.baeldung.persistence.dao.UserRepository;
import org.baeldung.persistence.model.User; import com.baeldung.persistence.model.User;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.social.connect.Connection; import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionSignUp; import org.springframework.social.connect.ConnectionSignUp;

View File

@ -1,4 +1,4 @@
package org.baeldung.security; package com.baeldung.security;
import java.util.Arrays; import java.util.Arrays;

View File

@ -1,9 +1,9 @@
package org.baeldung.security; package com.baeldung.security;
import java.util.Arrays; import java.util.Arrays;
import org.baeldung.persistence.dao.UserRepository; import com.baeldung.persistence.dao.UserRepository;
import org.baeldung.persistence.model.User; import com.baeldung.persistence.model.User;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetails;

View File

@ -1,6 +1,6 @@
package org.baeldung; package com.baeldung;
import org.baeldung.config.Application; import com.baeldung.config.Application;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;