Wiki source code of JAAS login service
Last modified by wolfgang_glas@iteg_at on 2012-01-19 12.38:36
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | The jaas-login-service is provided as an OSGi bundle, which may be activated by |
| 2 | |||
| 3 | (% class="code" %) | ||
| 4 | ((( | ||
| 5 | obr:addurl http:~/~/maven.clazzes.org/repository.xml | ||
| 6 | ))) | ||
| 7 | |||
| 8 | (% class="code" %) | ||
| 9 | ((( | ||
| 10 | obr:deploy gwt-jaas-login-service | ||
| 11 | ))) | ||
| 12 | |||
| 13 | The maven artifact is: | ||
| 14 | |||
| 15 | (% class="code" %) | ||
| 16 | ((( | ||
| 17 | <groupId>org.clazzes.gwt</groupId> | ||
| 18 | ))) | ||
| 19 | |||
| 20 | (% class="code" %) | ||
| 21 | ((( | ||
| 22 | <artifactId>gwt-jaas-login-service</artifactId> | ||
| 23 | ))) | ||
| 24 | |||
| 25 | === {{id name="JAASloginservice-Functionality"/}}Functionality === | ||
| 26 | |||
| |
2.1 | 27 | The JAAS login service authenticates against users in a JAAS (//[[Java Authentication and Authorization Service>>url:http://de.wikipedia.org/wiki/Java_Authentication_and_Authorization_Service||shape="rect" class="l"]]//) domain. |
| |
1.1 | 28 | |
| 29 | === {{id name="JAASloginservice-Configuration"/}}Configuration === | ||
| 30 | |||
| 31 | The JAAS login service may be configured using the OSGi configuration PID | ||
| 32 | |||
| 33 | (% class="code" %) | ||
| 34 | ((( | ||
| 35 | org.clazzes.gwt.login.jaas | ||
| 36 | ))) | ||
| 37 | |||
| 38 | as shown in the following gwt-config-manager screenshot | ||
| 39 | |||
| 40 | [[image:attach:Bildschirmfoto 2012-01-18 um 20.53.03.png||title="Bildschirmfoto 2012-01-18 um 20.53.03.png"]] | ||
| 41 | |||
| 42 | The configuration values are | ||
| 43 | |||
| 44 | |=((( | ||
| 45 | Key | ||
| 46 | )))|=((( | ||
| 47 | Default Value | ||
| 48 | )))|=((( | ||
| 49 | Description | ||
| 50 | ))) | ||
| 51 | |((( | ||
| 52 | defaultDomain | ||
| 53 | )))|((( | ||
| 54 | karaf | ||
| 55 | )))|((( | ||
| 56 | The JAAS domain to use for principals, which do not contain a domain. | ||
| 57 | ))) | ||
| 58 | |((( | ||
| 59 | maxRetries | ||
| 60 | )))|((( | ||
| 61 | 3 | ||
| 62 | )))|((( | ||
| 63 | The maximal number of retries before a user agent is blocked. | ||
| 64 | ))) | ||
| 65 | |((( | ||
| 66 | sessionTimeout | ||
| 67 | )))|((( | ||
| 68 | 180 | ||
| 69 | )))|((( | ||
| 70 | The session timeout in Minutes to set on the HTTPSession upon successful authentication. | ||
| 71 | ))) |