質問編集履歴
1
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,11 +22,97 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
callbackさせているのは下記のコードです。
|
26
|
+
|
27
|
+
```Java
|
28
|
+
|
29
|
+
@Override
|
30
|
+
|
31
|
+
public void configure() {
|
32
|
+
|
33
|
+
final String fbId = configuration.getString("fbId");
|
34
|
+
|
35
|
+
final String fbSecret = configuration.getString("fbSecret");
|
36
|
+
|
37
|
+
final String baseUrl = configuration.getString("baseUrl");
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
// OAuth
|
42
|
+
|
43
|
+
final FacebookClient facebookClient = new FacebookClient(fbId, fbSecret);
|
44
|
+
|
45
|
+
final Clients clients = new Clients(baseUrl + "callback", facebookClient);
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
final Config config = new Config(clients);
|
50
|
+
|
51
|
+
config.setClients(clients);
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
config.addAuthorizer("admin", new RequireAnyRoleAuthorizer<>("ROLE_ADMIN"));
|
56
|
+
|
57
|
+
config.addAuthorizer("custom", new CustomAuthorizer());
|
58
|
+
|
59
|
+
config.setHttpActionAdapter(new DemoHttpActionAdapter());
|
60
|
+
|
61
|
+
bind(Config.class).toInstance(config);
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
// set profile timeout to 2h instead of the 1h default
|
66
|
+
|
67
|
+
PlayCacheStore store = new PlayCacheStore();
|
68
|
+
|
69
|
+
store.setProfileTimeout(2147483647);
|
70
|
+
|
71
|
+
config.setSessionStore(store);
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
// callback
|
76
|
+
|
77
|
+
final CallbackController callbackController = new CallbackController();
|
78
|
+
|
79
|
+
callbackController.setDefaultUrl("/");
|
80
|
+
|
81
|
+
callbackController.setMultiProfile(true);
|
82
|
+
|
83
|
+
bind(CallbackController.class).toInstance(callbackController);
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
// logout
|
88
|
+
|
89
|
+
final ApplicationLogoutController logoutController = new ApplicationLogoutController();
|
90
|
+
|
91
|
+
logoutController.setDefaultUrl("/");
|
92
|
+
|
93
|
+
bind(ApplicationLogoutController.class).toInstance(logoutController);
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
```
|
98
|
+
|
99
|
+
|
100
|
+
|
25
101
|
現状は、[こちら](http://qiita.com/shimashima/items/6cae3ef84f0b4a12aa9e)のように認証をおこなっているようなのですが、
|
26
102
|
|
27
103
|
アクセストークンを送って返って来たところでページ遷移させているのですが、
|
28
104
|
|
29
105
|
そこにSSLが付きません。
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
https://FQDN/facebook.html#_=_
|
110
|
+
|
111
|
+
となってほしいが、
|
112
|
+
|
113
|
+
http://FQDN/facebook.html#_=_
|
114
|
+
|
115
|
+
となってしまう。
|
30
116
|
|
31
117
|
|
32
118
|
|