This repository has been archived by the owner on Mar 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oauth2 rather than persona-based login on the client side
- Loading branch information
Showing
3 changed files
with
123 additions
and
144 deletions.
There are no files selected for viewing
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
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,23 @@ | ||
var React = require('react'); | ||
|
||
var OAuth2Callback = React.createClass({ | ||
|
||
mixins: [ | ||
require('../lib/teach-api') | ||
], | ||
|
||
// The only thing this page does is take in the callback arguments, | ||
// and verify they are in fact valie. If so, the teach-api function | ||
// for continued login should redirect the user once authenticated | ||
// or rejected. | ||
componentDidMount: function() { | ||
this.getTeachAPI().continueLogin(); | ||
ga.event({ category: 'Login', action: 'Continue Login' }); | ||
}, | ||
|
||
render: function() { | ||
return <div>validating oauth2 callback information...</div>; | ||
} | ||
}); | ||
|
||
module.exports = OAuth2Callback; |
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