You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,4 +120,24 @@ ENV['torii'] = {
120
120
121
121
122
122
### Test & Enjoy
123
-
run `ember server` and try it out!
123
+
124
+
run `ember server` and try it out!
125
+
126
+
127
+
128
+
### Bonus: Get user info from google
129
+
130
+
We are going to create a custom torii provider that will also get the users information from google.
131
+
We need the custom provider because the default google-ouath2 uses the code workflow rather than the
132
+
token workflow that the google plus api's need. This code extends [torii oauth2-bearer](https://github.com/Vestorly/torii/blob/master/lib/torii/providers/oauth2-bearer.js) and borrows from [torri google-oauth2](https://github.com/Vestorly/torii/blob/master/lib/torii/providers/google-oauth2.js). It also uses jQuery for the GET request, if there is a better way let me know!
0 commit comments