Basic user authentication page and provider support

This commit is contained in:
2014-12-23 16:00:16 +01:00
parent 22bbe5bbfa
commit e5541cb2a9
12 changed files with 69 additions and 36 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
<html>
<head>
<script>
if(window.parent && window.opener.App && window.opener.App.handleAuthInfo){
window.opener.App.handleAuthInfo('<%= params[:user_id] %>', '<%= params[:authentication_token] %>');
if(window.parent && window.opener.App && window.opener.App.__container__){
window.opener.App.__container__.lookup('route:application').handleAuthInfo('<%= params[:user_id] %>', '<%= params[:authentication_token] %>');
window.close();
}else{
localStorage.setItem('auth_token', '<%= params[:authentication_token] %>');