Wiki source code of HTTP login service
Version 5.1 by christoph_lechleitner@iteg_at on 2013-02-02 05.12:50
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | The http-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-http-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-http-login-service</artifactId> | ||
| 23 | ))) | ||
| 24 | |||
| 25 | === {{id name="HTTPloginservice-Functionality"/}}Functionality === | ||
| 26 | |||
| 27 | The HTTP login service authenticates against users in a configured domain using the scheme described in [[confluencePage:page:OSGI.HTTP authentication requests]]. | ||
| 28 | |||
| 29 | === {{id name="HTTPloginservice-Configuration"/}}Configuration === | ||
| 30 | |||
| 31 | The HTTP login service may be configured using the OSGi configuration PID | ||
| 32 | |||
| 33 | (% class="code" %) | ||
| 34 | ((( | ||
| 35 | org.clazzes.gwt.login.http | ||
| 36 | ))) | ||
| 37 | |||
| 38 | as shown in the following gwt-config-manager screenshot | ||
| 39 | |||
| 40 | [[image:attach:Bildschirmfoto 2012-01-18 um 21.29.32.png||title="Bildschirmfoto 2012-01-18 um 21.29.32.png"]] | ||
| 41 | |||
| 42 | The configuration values are | ||
| 43 | |||
| 44 | |=((( | ||
| 45 | Key | ||
| 46 | )))|=((( | ||
| 47 | Default Value | ||
| 48 | )))|=((( | ||
| 49 | Description | ||
| 50 | ))) | ||
| 51 | |((( | ||
| 52 | defaultDomain | ||
| 53 | )))|((( | ||
| 54 | |||
| 55 | )))|((( | ||
| 56 | The 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 | ))) | ||
| 72 | |((( | ||
| 73 | domain.<domain>.controller | ||
| 74 | )))|((( | ||
| 75 | |||
| 76 | )))|((( | ||
| 77 | The server to contact. Supported URL schemes: https. | ||
| 78 | ))) | ||
| 79 | |((( | ||
| 80 | domain.<domain>.bindpw | ||
| 81 | )))|((( | ||
| 82 | |||
| 83 | )))|((( | ||
| 84 | The password used for HTTP basic authentication before doing the acutal authentication. If empty, no basi auth is performed. | ||
| 85 | ))) | ||
| 86 | |((( | ||
| 87 | domain.<domain>.binduser | ||
| 88 | )))|((( | ||
| 89 | |||
| 90 | )))|((( | ||
| 91 | The user used for HTTP basic authentication before doing the acutal authentication. If empty, no basi auth is performed. | ||
| 92 | ))) | ||
| 93 | |||
| 94 | There might be multiple domains in a configuration. |