multi_auth 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +36 -0
- data/app/controllers/application_controller.rb +11 -0
- data/app/controllers/auth/email_controller.rb +34 -0
- data/app/controllers/auth/open_id_controller.rb +43 -0
- data/app/controllers/auth_controller.rb +24 -0
- data/app/controllers/credentials/email_controller.rb +156 -0
- data/app/controllers/credentials/open_id_controller.rb +85 -0
- data/app/controllers/credentials_controller.rb +14 -0
- data/app/controllers/signup/email_controller.rb +132 -0
- data/app/controllers/signup/open_id_controller.rb +62 -0
- data/app/controllers/signup_controller.rb +8 -0
- data/app/helpers/application_helper.rb +5 -0
- data/app/models/activation_mailer.rb +114 -0
- data/app/models/email_credential.rb +89 -0
- data/app/models/email_credential_edit_form.rb +52 -0
- data/app/models/email_login_form.rb +24 -0
- data/app/models/email_password_edit_form.rb +36 -0
- data/app/models/open_id_credential.rb +33 -0
- data/app/models/open_id_login_form.rb +17 -0
- data/app/models/session.rb +19 -0
- data/app/models/user.rb +37 -0
- data/app/views/activation_mailer/complete_for_credential.erb +4 -0
- data/app/views/activation_mailer/complete_for_notice.erb +4 -0
- data/app/views/activation_mailer/complete_for_signup.erb +4 -0
- data/app/views/activation_mailer/request_for_credential.erb +11 -0
- data/app/views/activation_mailer/request_for_notice.erb +11 -0
- data/app/views/activation_mailer/request_for_signup.erb +11 -0
- data/app/views/auth/email/index.html.erb +90 -0
- data/app/views/auth/logged_in.html.erb +21 -0
- data/app/views/auth/logged_out.html.erb +21 -0
- data/app/views/auth/open_id/index.html.erb +16 -0
- data/app/views/credentials/email/activated.html.erb +4 -0
- data/app/views/credentials/email/activation.html.erb +15 -0
- data/app/views/credentials/email/created.html.erb +15 -0
- data/app/views/credentials/email/delete.html.erb +20 -0
- data/app/views/credentials/email/edit_password.html.erb +31 -0
- data/app/views/credentials/email/new.html.erb +36 -0
- data/app/views/credentials/index.html.erb +88 -0
- data/app/views/credentials/open_id/delete.html.erb +20 -0
- data/app/views/credentials/open_id/new.html.erb +26 -0
- data/app/views/signup/email/_progress.html.erb +14 -0
- data/app/views/signup/email/activated.html.erb +9 -0
- data/app/views/signup/email/activation.html.erb +27 -0
- data/app/views/signup/email/created.html.erb +14 -0
- data/app/views/signup/email/index.html.erb +34 -0
- data/app/views/signup/email/validated.html.erb +21 -0
- data/app/views/signup/index.html.erb +51 -0
- data/app/views/signup/open_id/authenticated.html.erb +15 -0
- data/app/views/signup/open_id/created.html.erb +6 -0
- data/app/views/signup/open_id/index.html.erb +16 -0
- data/config/boot.rb +110 -0
- data/config/database.yml +22 -0
- data/config/database.yml.sqlite3 +22 -0
- data/config/environment.rb +62 -0
- data/config/routes.rb +51 -0
- data/config/smtp.yml.example +8 -0
- data/db/development.sqlite3 +0 -0
- data/db/schema.rb +88 -0
- data/db/test.sqlite3 +0 -0
- data/lib/action_mailer_util.rb +15 -0
- data/lib/multi_auth.rb +64 -0
- data/lib/multi_auth_helper.rb +98 -0
- data/lib/notice_formatter.rb +106 -0
- data/lib/open_id_authentication/result.rb +12 -0
- data/lib/token_util.rb +18 -0
- data/public/404.html +92 -0
- data/public/422.html +91 -0
- data/public/500.html +92 -0
- data/public/503.html +92 -0
- data/public/favicon.ico +0 -0
- data/public/images/battery/cell.png +0 -0
- data/public/images/battery/level-green.png +0 -0
- data/public/images/battery/level-orange.png +0 -0
- data/public/images/battery/level-red.png +0 -0
- data/public/images/battery/level-yellow.png +0 -0
- data/public/images/battery/style.html +82 -0
- data/public/images/favicons/livedoor.png +0 -0
- data/public/images/favicons/mixi.png +0 -0
- data/public/images/favicons/yahoo.png +0 -0
- data/public/images/h1-back.png +0 -0
- data/public/images/icons/fam/add.png +0 -0
- data/public/images/icons/fam/bin.png +0 -0
- data/public/images/icons/fam/bomb.png +0 -0
- data/public/images/icons/fam/cog.png +0 -0
- data/public/images/icons/fam/delete.png +0 -0
- data/public/images/icons/fam/email-with-desc.png +0 -0
- data/public/images/icons/fam/email.png +0 -0
- data/public/images/icons/fam/feed.png +0 -0
- data/public/images/icons/fam/help.png +0 -0
- data/public/images/icons/fam/key-with-desc.png +0 -0
- data/public/images/icons/fam/key.png +0 -0
- data/public/images/icons/fam/lightning.png +0 -0
- data/public/images/icons/fam/plugin.png +0 -0
- data/public/images/icons/fam/stop.png +0 -0
- data/public/images/icons/fam/table_save.png +0 -0
- data/public/images/icons/fam/tick.png +0 -0
- data/public/images/icons/fam/user.png +0 -0
- data/public/images/icons/fam/vcard.png +0 -0
- data/public/images/icons/openid-with-desc.png +0 -0
- data/public/images/icons/openid.png +0 -0
- data/public/images/logo-back.png +0 -0
- data/public/images/logo.png +0 -0
- data/public/images/side-column-back.png +0 -0
- data/public/javascripts/application.js +2 -0
- data/public/javascripts/controls.js +963 -0
- data/public/javascripts/dragdrop.js +973 -0
- data/public/javascripts/effects.js +1128 -0
- data/public/javascripts/prototype.js +4320 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/application.css +365 -0
- data/public/stylesheets/auth.css +22 -0
- data/public/stylesheets/home.css +114 -0
- data/rails/init.rb +24 -0
- data/test/functional/auth/email_controller_test.rb +102 -0
- data/test/functional/auth/open_id_controller_test.rb +76 -0
- data/test/functional/auth_controller_test.rb +74 -0
- data/test/functional/credentials/email_controller_test.rb +488 -0
- data/test/functional/credentials/open_id_controller_test.rb +308 -0
- data/test/functional/credentials_controller_test.rb +49 -0
- data/test/functional/signup/email_controller_test.rb +369 -0
- data/test/functional/signup/open_id_controller_test.rb +44 -0
- data/test/functional/signup_controller_test.rb +17 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +82 -0
- data/test/unit/action_mailer_util_test.rb +63 -0
- data/test/unit/activation_mailer_test.rb +181 -0
- data/test/unit/email_credential_edit_form_test.rb +173 -0
- data/test/unit/email_credential_test.rb +324 -0
- data/test/unit/email_login_form_test.rb +76 -0
- data/test/unit/email_password_edit_form_test.rb +117 -0
- data/test/unit/helpers/auth_helper_test.rb +4 -0
- data/test/unit/helpers/credentials/email_helper_test.rb +4 -0
- data/test/unit/helpers/credentials/open_id_helper_test.rb +4 -0
- data/test/unit/helpers/credentials_helper_test.rb +4 -0
- data/test/unit/helpers/email_auth_helper_test.rb +4 -0
- data/test/unit/helpers/email_signup_helper_test.rb +4 -0
- data/test/unit/helpers/open_id_auth_helper_test.rb +4 -0
- data/test/unit/helpers/open_id_signup_helper_test.rb +4 -0
- data/test/unit/helpers/password_auth_helper_test.rb +4 -0
- data/test/unit/helpers/password_signup_helper_test.rb +4 -0
- data/test/unit/helpers/signup_helper_test.rb +4 -0
- data/test/unit/notice_formatter_test.rb +153 -0
- data/test/unit/open_id_credential_test.rb +108 -0
- data/test/unit/open_id_login_form_test.rb +57 -0
- data/test/unit/session_test.rb +53 -0
- data/test/unit/token_util_test.rb +51 -0
- data/test/unit/user_test.rb +177 -0
- metadata +220 -0
data/public/500.html
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
+
<title>500: Internal Server Error</title>
|
6
|
+
<style type="text/css">
|
7
|
+
*
|
8
|
+
{
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
}
|
12
|
+
#dialog
|
13
|
+
{
|
14
|
+
position: absolute;
|
15
|
+
top: 50%;
|
16
|
+
left: 50%;
|
17
|
+
width: 650px;
|
18
|
+
height: 200px;
|
19
|
+
margin: -100px 0px 0px -325px;
|
20
|
+
}
|
21
|
+
#code-outer
|
22
|
+
{
|
23
|
+
position: absolute;
|
24
|
+
top: 0px;
|
25
|
+
left: 0px;
|
26
|
+
width: 249px;
|
27
|
+
height: 200px;
|
28
|
+
border-style: solid;
|
29
|
+
border-color: #CCCCCC;
|
30
|
+
border-width: 0px 1px 0px 0px;
|
31
|
+
}
|
32
|
+
#code-inner
|
33
|
+
{
|
34
|
+
font-size: 150px;
|
35
|
+
line-height: 200px;
|
36
|
+
text-align: center;
|
37
|
+
color: #999999;
|
38
|
+
}
|
39
|
+
#message
|
40
|
+
{
|
41
|
+
position: absolute;
|
42
|
+
top: 0px;
|
43
|
+
left: 250px;
|
44
|
+
width: 400px;
|
45
|
+
height: 200px;
|
46
|
+
}
|
47
|
+
#status-outer
|
48
|
+
{
|
49
|
+
height: 75px;
|
50
|
+
}
|
51
|
+
#status-inner
|
52
|
+
{
|
53
|
+
padding: 40px 0px 0px 10px;
|
54
|
+
font-size: 24px;
|
55
|
+
font-weight: bold;
|
56
|
+
color: #999999;
|
57
|
+
}
|
58
|
+
#description-outer
|
59
|
+
{
|
60
|
+
height: 124px;
|
61
|
+
border-style: solid;
|
62
|
+
border-color: #CCCCCC;
|
63
|
+
border-width: 1px 0px 0px 0px;
|
64
|
+
}
|
65
|
+
#description-inner
|
66
|
+
{
|
67
|
+
padding: 10px;
|
68
|
+
font-size: 14px;
|
69
|
+
line-height: 24px;
|
70
|
+
color: #999999;
|
71
|
+
}
|
72
|
+
</style>
|
73
|
+
</head>
|
74
|
+
<body>
|
75
|
+
<div id="dialog">
|
76
|
+
<div id="code-outer">
|
77
|
+
<div id="code-inner">500</div>
|
78
|
+
</div>
|
79
|
+
<div id="message">
|
80
|
+
<div id="status-outer">
|
81
|
+
<div id="status-inner">Internal Server Error</div>
|
82
|
+
</div>
|
83
|
+
<div id="description-outer">
|
84
|
+
<div id="description-inner">
|
85
|
+
<div>なんらかのエラーが発生しました。何度もこのエラーメッセージが表示される場合は、表示しようとしたURLや状況などを<a href="mailto:info@nayutaya.co.jp">info@nayutaya.co.jp</a>までご連絡頂けると幸いです。</div>
|
86
|
+
<div>We're sorry, but something went wrong.</div>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</body>
|
92
|
+
</html>
|
data/public/503.html
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
+
<title>503: Service Temporarily Unavailable</title>
|
6
|
+
<style type="text/css">
|
7
|
+
*
|
8
|
+
{
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
}
|
12
|
+
#dialog
|
13
|
+
{
|
14
|
+
position: absolute;
|
15
|
+
top: 50%;
|
16
|
+
left: 50%;
|
17
|
+
width: 650px;
|
18
|
+
height: 200px;
|
19
|
+
margin: -100px 0px 0px -325px;
|
20
|
+
}
|
21
|
+
#code-outer
|
22
|
+
{
|
23
|
+
position: absolute;
|
24
|
+
top: 0px;
|
25
|
+
left: 0px;
|
26
|
+
width: 249px;
|
27
|
+
height: 200px;
|
28
|
+
border-style: solid;
|
29
|
+
border-color: #CCCCCC;
|
30
|
+
border-width: 0px 1px 0px 0px;
|
31
|
+
}
|
32
|
+
#code-inner
|
33
|
+
{
|
34
|
+
font-size: 150px;
|
35
|
+
line-height: 200px;
|
36
|
+
text-align: center;
|
37
|
+
color: #999999;
|
38
|
+
}
|
39
|
+
#message
|
40
|
+
{
|
41
|
+
position: absolute;
|
42
|
+
top: 0px;
|
43
|
+
left: 250px;
|
44
|
+
width: 400px;
|
45
|
+
height: 200px;
|
46
|
+
}
|
47
|
+
#status-outer
|
48
|
+
{
|
49
|
+
height: 75px;
|
50
|
+
}
|
51
|
+
#status-inner
|
52
|
+
{
|
53
|
+
padding: 40px 0px 0px 10px;
|
54
|
+
font-size: 24px;
|
55
|
+
font-weight: bold;
|
56
|
+
color: #999999;
|
57
|
+
}
|
58
|
+
#description-outer
|
59
|
+
{
|
60
|
+
height: 124px;
|
61
|
+
border-style: solid;
|
62
|
+
border-color: #CCCCCC;
|
63
|
+
border-width: 1px 0px 0px 0px;
|
64
|
+
}
|
65
|
+
#description-inner
|
66
|
+
{
|
67
|
+
padding: 10px;
|
68
|
+
font-size: 14px;
|
69
|
+
line-height: 24px;
|
70
|
+
color: #999999;
|
71
|
+
}
|
72
|
+
</style>
|
73
|
+
</head>
|
74
|
+
<body>
|
75
|
+
<div id="dialog">
|
76
|
+
<div id="code-outer">
|
77
|
+
<div id="code-inner">503</div>
|
78
|
+
</div>
|
79
|
+
<div id="message">
|
80
|
+
<div id="status-outer">
|
81
|
+
<div id="status-inner">Service Temporarily Unavailable</div>
|
82
|
+
</div>
|
83
|
+
<div id="description-outer">
|
84
|
+
<div id="description-inner">
|
85
|
+
<div>現在、一時的にサービスに接続できません。サーバへの接続が集中しているため混雑しているか、保守作業中である可能性があります。</div>
|
86
|
+
<div>時間をおいて、再度の接続をお試しください。</div>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</body>
|
92
|
+
</html>
|
data/public/favicon.ico
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>style</title>
|
4
|
+
<style type="text/css">
|
5
|
+
body
|
6
|
+
{
|
7
|
+
background-color: #F0F0F0;
|
8
|
+
}
|
9
|
+
|
10
|
+
div.battery-cell
|
11
|
+
{
|
12
|
+
margin: 0;
|
13
|
+
padding: 4px 7px 4px 5px;
|
14
|
+
width: 100px;
|
15
|
+
height: 13px;
|
16
|
+
background-image: url(cell.png);
|
17
|
+
background-repeat: no-repeat;
|
18
|
+
}
|
19
|
+
|
20
|
+
div.battery-level
|
21
|
+
{
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
width: 100px;
|
25
|
+
height: 13px;
|
26
|
+
}
|
27
|
+
|
28
|
+
div.battery-high,
|
29
|
+
div.battery-middle,
|
30
|
+
div.battery-low,
|
31
|
+
div.battery-empty
|
32
|
+
{
|
33
|
+
margin: 0;
|
34
|
+
padding: 0;
|
35
|
+
height: 13px;
|
36
|
+
background-repeat: repeat-x;
|
37
|
+
}
|
38
|
+
|
39
|
+
div.battery-high
|
40
|
+
{
|
41
|
+
background-image: url(level-green.png);
|
42
|
+
}
|
43
|
+
|
44
|
+
div.battery-middle
|
45
|
+
{
|
46
|
+
background-image: url(level-orange.png);
|
47
|
+
}
|
48
|
+
|
49
|
+
div.battery-low
|
50
|
+
{
|
51
|
+
background-image: url(level-yellow.png);
|
52
|
+
}
|
53
|
+
|
54
|
+
div.battery-empty
|
55
|
+
{
|
56
|
+
background-image: url(level-red.png);
|
57
|
+
}
|
58
|
+
</style>
|
59
|
+
</head>
|
60
|
+
<body>
|
61
|
+
<div>
|
62
|
+
<img src="cell.png" />
|
63
|
+
<img src="level-green.png" />
|
64
|
+
<img src="level-orange.png" />
|
65
|
+
<img src="level-yellow.png" />
|
66
|
+
<img src="level-red.png" />
|
67
|
+
</div>
|
68
|
+
<div>
|
69
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-high" style="width: 100px;"></div></div></div>
|
70
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-high" style="width: 90px;"></div></div></div>
|
71
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-high" style="width: 80px;"></div></div></div>
|
72
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-high" style="width: 70px;"></div></div></div>
|
73
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-high" style="width: 60px;"></div></div></div>
|
74
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-high" style="width: 50px;"></div></div></div>
|
75
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-middle" style="width: 40px;"></div></div></div>
|
76
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-low" style="width: 30px;"></div></div></div>
|
77
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-empty" style="width: 20px;"></div></div></div>
|
78
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-empty" style="width: 10px;"></div></div></div>
|
79
|
+
<div class="battery-cell"><div class="battery-level"><div class="battery-empty" style="width: 1px;"></div></div></div>
|
80
|
+
</div>
|
81
|
+
</body>
|
82
|
+
</html>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|