Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
createAUser ( ) : |
Create a new user. |
Method | Description | |
---|---|---|
findOrCreateUser ( $githubUser ) : |
Return user if exists; create and return if doesn't |
protected createAUser ( ) : |
||
return |
public handleGithubOAuth ( ) : Response | ||
return | Response |
public handleTwitterOAuth ( ) : Response | ||
return | Response |
public redirectToGithub ( ) : Response | ||
return | Response |
public redirectToTwitter ( ) : Response | ||
return | Response |