File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
import Ember from 'ember' ;
2
2
import ajax from 'ic-ajax' ;
3
3
4
+ /**
5
+ * This route will be called from the GitHub OAuth flow once the user has
6
+ * accepted or rejected the data access permissions. It will forward the
7
+ * temporary `code` received from the GitHub API to our own API server which
8
+ * will exchange it for an access token.
9
+ *
10
+ * After the exchange the API will return an API token and the user information.
11
+ * The result will be stored and the popup window closed. The `/login` route
12
+ * will then continue to evaluate the response.
13
+ *
14
+ * @see https://developer.github.com/v3/oauth/#github-redirects-back-to-your-site
15
+ * @see `/login` route
16
+ */
4
17
export default Ember . Route . extend ( {
5
18
beforeModel : function ( transition ) {
6
19
return ajax ( '/authorize' , { data : transition . queryParams } ) . then ( function ( d ) {
You can’t perform that action at this time.
0 commit comments