Wiki source code of org.clazzes.login.adapter.http

Version 11.1 by wolfgang_glas@iteg_at on 2013-07-23 09.37:59

Hide last authors
christoph_lechleitner@iteg_at 1.1 1 === {{id name="org.clazzes.login.adapter.http-LoginAdapter"/}}Login Adapter ===
2
christoph_lechleitner@iteg_at 9.1 3 The login-service-adapter {{code language="none"}}org.clazzes.login.adapter.http{{/code}} listens for providers of the ##[[DomainPasswordLoginService>>doc:LOGIN.DomainPasswordLoginService implementations and backends.WebHome]]## interface and exports them adapted as a ##[[HttpLoginService>>doc:GWTBASICS.GWT implementations of http-util HttpLoginService.HTTP login service.WebHome]]## (see [[https:~~/~~/svn.clazzes.org/svn/util/trunk/http-util/src/main/java/org/clazzes/util/http/sec/HttpLoginService.java>>url:https://svn.clazzes.org/svn/util/trunk/http-util/src/main/java/org/clazzes/util/http/sec/HttpLoginService.java||shape="rect"]]).
christoph_lechleitner@iteg_at 1.1 4
5 It is provided as an OSGi bundle, which may be activated by
6
7 (% class="code" %)
8 (((
9 obr:addurl http:~/~/maven.clazzes.org/repository.xml
10 obr:deploy http-login-adapter
11 )))
12
13 The maven artifact is:
14
15 (% class="code" %)
16 (((
17 <groupId>org.clazzes.login</groupId>
18 <artifactId>http-login-adapter</artifactId>
19 )))
20
21 URL of exported {{code language="none"}}DomainPasswordLoginService{{/code}}: {{code language="none"}}/http-login/<login.mechanism>/login{{/code}}
christoph_lechleitner@iteg_at 7.1 22 <login.mechanism> beeing i.e. {{code language="none"}}jaas{{/code}} from [[doc:LOGIN.DomainPasswordLoginService implementations and backends.org\.clazzes\.login\.jaas.WebHome]], {{code language="none"}}ldap{{/code}} from [[doc:LOGIN.DomainPasswordLoginService implementations and backends.org\.clazzes\.login\.ldap.WebHome]], {{code language="none"}}http{{/code}} from [[doc:LOGIN.DomainPasswordLoginService implementations and backends.org\.clazzes\.login\.http.WebHome]].
christoph_lechleitner@iteg_at 1.1 23
wolfgang_glas@iteg_at 10.1 24 Starting with version 1.1.0 of http-login-adapter, the timezone of the user logging in is determined via javascript and propagated to the server as the login time zone, when the configuration parameter {{code language="none"}}doTimeZoneDetection=true{{/code}} is set. The login timezone may be queried using HttpLoginServer.getTimeZone() or ThreadLocalManager.getLoginTimeZone() when using HttpCheckLoginInterceptor of http-aop-util-1.2.0 or later
25
26 The login time zone and/or login local may be overwritten using URL parameters to the login service like in the following examples:
27
28 |=(((
29 login URL
30 )))|=(((
31 remarks
32 )))
33 |(((
34 (% class="code" %)
35 (((
36 /http-login/<login.mechanism>/login?tz=America/Los_Angeles
37 )))
38 )))|(((
wolfgang_glas@iteg_at 11.1 39 login with the browser's default locale and Los Angeles time zone
wolfgang_glas@iteg_at 10.1 40 )))
41 |(((
wolfgang_glas@iteg_at 11.1 42 (% class="code" %)
43 (((
44 /http-login/<login.mechanism>/login?tz=GMT+01:00&locale=fr
45 )))
wolfgang_glas@iteg_at 10.1 46 )))|(((
wolfgang_glas@iteg_at 11.1 47 login with a timezone with fixed offset and a french locale.
wolfgang_glas@iteg_at 10.1 48 )))
49 |(((
wolfgang_glas@iteg_at 11.1 50 (% class="code" %)
51 (((
52 /http-login/<login.mechanism>/login?locale=fr-CA
53 )))
wolfgang_glas@iteg_at 10.1 54 )))|(((
wolfgang_glas@iteg_at 11.1 55 login with a french canadian locale.
wolfgang_glas@iteg_at 10.1 56 )))
57
58 \\
59
60 \\
61
62
63
christoph_lechleitner@iteg_at 1.1 64 === {{id name="org.clazzes.login.adapter.http-Testpad"/}}Testpad ===
65
66 There is a small testpad application to play with this adapter.
67
68 It is provided as an OSGi bundle, which may be activated by
69
70 (% class="code" %)
71 (((
72 obr:addurl http:~/~/maven.clazzes.org/repository.xml
73 obr:deploy http-login-testpad
74 )))
75
76 The maven artifact is:
77
78 (% class="code" %)
79 (((
80 <groupId>org.clazzes.login</groupId>
81 <artifactId>http-login-testpad</artifactId>
82 )))
83
84