메소드 | 설명 | |
---|---|---|
__construct ( ) | Only guest can access this controller. | |
handleGithubOAuth ( ) : Response | Obtain the user information from GitHub. | |
handleTwitterOAuth ( ) : Response | Obtain the user information from GitHub. | |
redirectToGithub ( ) : Response | Redirect the user to the GitHub authentication page. | |
redirectToTwitter ( ) : Response | Redirect the user to the GitHub authentication page. |
메소드 | 설명 | |
---|---|---|
createAUser ( ) : |
Create a new user. |
메소드 | 설명 | |
---|---|---|
findOrCreateUser ( $githubUser ) : |
Return user if exists; create and return if doesn't |
public handleGithubOAuth ( ) : Response | ||
리턴 | Response |
public handleTwitterOAuth ( ) : Response | ||
리턴 | Response |
public redirectToGithub ( ) : Response | ||
리턴 | Response |
public redirectToTwitter ( ) : Response | ||
리턴 | Response |