-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java][social_login-01_base] Add base structure
- Loading branch information
1 parent
c947f9c
commit 94f3d6f
Showing
17 changed files
with
152 additions
and
31 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
..._login-01_base/src/main/java/tv/codely/app/controller/login/EmailLoginPostController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tv.codely.app.controller.login; | ||
|
||
public final class EmailLoginPostController { | ||
public void post(String email, String password) { | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ogin-01_base/src/main/java/tv/codely/app/controller/login/TwitterLoginPostController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tv.codely.app.controller.login; | ||
|
||
public final class TwitterLoginPostController { | ||
public void post(String username, String token) { | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...gin-01_base/src/main/java/tv/codely/app/controller/sign_up/EmailSignUpPostController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tv.codely.app.controller.sign_up; | ||
|
||
public final class EmailSignUpPostController { | ||
public void post(String email, String password) { | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...n-01_base/src/main/java/tv/codely/app/controller/sign_up/TwitterSignUpPostController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tv.codely.app.controller.sign_up; | ||
|
||
public final class TwitterSignUpPostController { | ||
public void post(String username, String token) { | ||
|
||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...java-social_login-01_base/src/main/java/tv/codely/ecommerce/login/EmailLoginProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tv.codely.ecommerce.login; | ||
|
||
public final class EmailLoginProvider extends LoginProvider { | ||
private final String email; | ||
private final String password; | ||
|
||
public EmailLoginProvider(String email, String password, String ip) { | ||
super("email", ip); | ||
this.email = email; | ||
this.password = password; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...a-social_login-01_base/src/main/java/tv/codely/ecommerce/login/FacebookLoginProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tv.codely.ecommerce.login; | ||
|
||
public final class FacebookLoginProvider extends LoginProvider { | ||
private final String email; | ||
private final String hash; | ||
|
||
public FacebookLoginProvider(String email, String hash, String ip) { | ||
super("facebook", ip); | ||
this.email = email; | ||
this.hash = hash; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ava-social_login-01_base/src/main/java/tv/codely/ecommerce/login/GitHubLoginProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package tv.codely.ecommerce.login; | ||
|
||
public final class GitHubLoginProvider extends LoginProvider { | ||
private final String username; | ||
private final String secretKey; | ||
|
||
public GitHubLoginProvider(String username, String secretKey, String ip) { | ||
super("github", ip); | ||
|
||
this.username = username; | ||
this.secretKey = secretKey; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...java/java-social_login-01_base/src/main/java/tv/codely/ecommerce/login/LoginProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package tv.codely.ecommerce.login; | ||
|
||
public abstract class LoginProvider { | ||
private String provider; | ||
private String ip; | ||
|
||
public LoginProvider(String provider, String ip) { | ||
this.provider = provider; | ||
this.ip = ip; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...va-social_login-01_base/src/main/java/tv/codely/ecommerce/login/TwitterLoginProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tv.codely.ecommerce.login; | ||
|
||
public final class TwitterLoginProvider extends LoginProvider { | ||
private String username; | ||
private String token; | ||
|
||
public TwitterLoginProvider(String username, String token, String ip) { | ||
super("twitter", ip); | ||
this.username = username; | ||
this.token = token; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...va-social_login-01_base/src/main/java/tv/codely/ecommerce/login_attempt/LoginAttempt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tv.codely.ecommerce.login_attempt; | ||
|
||
public abstract class LoginAttempt { | ||
public LoginAttempt(String dsf) { | ||
|
||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...a-social_login-01_base/src/main/java/tv/codely/ecommerce/sign_up/EmailSignUpProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tv.codely.ecommerce.sign_up; | ||
|
||
public final class EmailSignUpProvider extends SignUpProvider { | ||
private final String email; | ||
private final String password; | ||
|
||
public EmailSignUpProvider(String email, String password) { | ||
super("email"); | ||
this.email = email; | ||
this.password = password; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ocial_login-01_base/src/main/java/tv/codely/ecommerce/sign_up/FacebookSignUpProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tv.codely.ecommerce.sign_up; | ||
|
||
public final class FacebookSignUpProvider extends SignUpProvider { | ||
private final String email; | ||
private final String hash; | ||
|
||
public FacebookSignUpProvider(String email, String hash) { | ||
super("facebook"); | ||
this.email = email; | ||
this.hash = hash; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...-social_login-01_base/src/main/java/tv/codely/ecommerce/sign_up/GitHubSignUpProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tv.codely.ecommerce.sign_up; | ||
|
||
public final class GitHubSignUpProvider extends SignUpProvider { | ||
private final String username; | ||
private final String secretKey; | ||
|
||
public GitHubSignUpProvider(String username, String secretKey) { | ||
super("github"); | ||
this.username = username; | ||
this.secretKey = secretKey; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...a/java-social_login-01_base/src/main/java/tv/codely/ecommerce/sign_up/SignUpProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package tv.codely.ecommerce.sign_up; | ||
|
||
public abstract class SignUpProvider { | ||
private String provider; | ||
|
||
public SignUpProvider(String provider) { | ||
this.provider = provider; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...social_login-01_base/src/main/java/tv/codely/ecommerce/sign_up/TwitterSignUpProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tv.codely.ecommerce.sign_up; | ||
|
||
public final class TwitterSignUpProvider extends SignUpProvider { | ||
private String username; | ||
private String token; | ||
|
||
public TwitterSignUpProvider(String username, String token) { | ||
super("twitter"); | ||
this.username = username; | ||
this.token = token; | ||
} | ||
} |
7 changes: 0 additions & 7 deletions
7
...s/java/java-social_login-01_base/src/main/java/tv/codely/java_basic_skeleton/Greeter.java
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
.../java-social_login-01_base/src/test/java/tv/codely/java_basic_skeleton/GreeterShould.java
This file was deleted.
Oops, something went wrong.