Changes for page HTTP authentication API NG
Last modified by christoph_lechleitner@iteg_at on 2013-02-02 05.47:41
From version 15.1
edited by christoph_lechleitner@iteg_at
on 2013-02-02 05.47:41
on 2013-02-02 05.47:41
Change comment:
Migrated to Confluence 5.3
To version 4.1
edited by christoph_lechleitner@iteg_at
on 2012-11-08 06.51:11
on 2012-11-08 06.51:11
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,8 +1,8 @@ 1 1 == {{id name="HTTPauthenticationAPING-Motivation"/}}Motivation == 2 2 3 -{{code language="none"}}org.clazzes.login.http{{/code}} is a the HTTP based implementation of [[DomainPasswordLoginService>> doc:LOGIN.DomainPasswordLoginServiceimplementations and backends.WebHome]].3 +{{code language="none"}}org.clazzes.login.http{{/code}} is a the HTTP based implementation of [[DomainPasswordLoginService>>confluencePage:page:LOGIN.(HTTP)Login Service NG: DomainPasswordLoginService]]. 4 4 5 -While the old [[HTTP authentication request>> doc:GWTBASICS.GWT implementations ofhttp-utilHttpLoginService.HTTPlogin service.HTTPlogin service backend-requestsAPI.WebHome]] is satisfying for user/password checks, new optional features like group membership queries require new handshakes for the HTTP backend API.5 +While the old [[HTTP authentication request>>confluencePage:page:LOGIN.HTTP authentication requests]] is satisfying for user/password checks, new optional features like group membership queries require new handshakes for the HTTP backend API. 6 6 7 7 This document speficies the next-gen HTTP authentication API. 8 8 ... ... @@ -61,7 +61,7 @@ 61 61 62 62 The server may enforce the use of HTTP basic authentication in order to keep offending servers away from dictionary attacks. 63 63 64 -===== {{id name="HTTPauthenticationAPING-JSONvariant s"/}}JSON variants=====64 +===== {{id name="HTTPauthenticationAPING-JSONvariant"/}}JSON variant ===== 65 65 66 66 A backend may support to return the response in the form of small JSON documents. 67 67 ... ... @@ -83,10 +83,10 @@ 83 83 84 84 (% style="list-style-type: square;" %) 85 85 * ((( 86 -a short infomessage, like86 +a short message, like 87 87 88 88 {{code language="none"}} 89 -{ " info" : "Some message to use in log files" }89 +{ "message" : "Some message to use in log files" } 90 90 {{/code}} 91 91 ))) 92 92 * (% style="color: rgb(0,0,0);" %)or a list of named values, for examples scroll down to the operation chapters ... ... @@ -120,20 +120,10 @@ 120 120 user=<user>&passwd=<passwd> 121 121 {{/code}} 122 122 123 -====== {{id name="HTTPauthenticationAPING-Responsebody (plainnon-JSONvariant)"/}}Response body(%style="color: rgb(0,0,0);" %) (plain non-JSON variant)(%%)======123 +====== {{id name="HTTPauthenticationAPING-Responsebody"/}}Response body ====== 124 124 125 -(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)Non-empty information text, not more (% style="color: rgb(0,0,0);" %)than 1024 bytes. The message may go into logfiles and should not be displayed to the user. 125 +(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)Non-empty information text, not more (% style="color: rgb(0,0,0);" %)than 1024 bytes. The message may go into logfiles and should not be displayed to the user. 126 126 127 -====== {{id name="HTTPauthenticationAPING-Responsebody(JSONvariant)"/}}(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)Response body (JSON variant)(%%) ====== 128 - 129 -(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)Successful: 130 - 131 -{{code language="none"}} 132 -{ "user" : "jdoe", "prettyName" : "John Doe", "eMailAddress" : "jdoe@foo.bar" } 133 -{{/code}} 134 - 135 -Not found or problem: See documentation of "searchUser". 136 - 137 137 ==== {{id name="HTTPauthenticationAPING-getSupportedOperations"/}}getSupportedOperations ==== 138 138 139 139 ====== {{id name="HTTPauthenticationAPING-Requestbody"/}}Request body ====== ... ... @@ -161,7 +161,7 @@ 161 161 ====== {{id name="HTTPauthenticationAPING-Responsebody(JSONvariant)"/}}Response body (JSON variant) ====== 162 162 163 163 {{code language="none"}} 164 -[ "getSupportedOperations", "tryLogin" ] 154 +{ "operations": [ "getSupportedOperations", "tryLogin" ] } 165 165 {{/code}} 166 166 167 167 == {{id name="HTTPauthenticationAPING-OptionalOperations"/}}(% style="color: rgb(0,0,0);" %)Optional Operations(%%) == ... ... @@ -219,7 +219,7 @@ 219 219 ====== {{id name="HTTPauthenticationAPING-Responsebody(JSONvariant)"/}}Response body (JSON variant) ====== 220 220 221 221 {{code language="none"}} 222 -[ "SOMEDOMAIN" ] 212 +{ "defaultDomain": [ "SOMEDOMAIN" ] } 223 223 {{/code}} 224 224 225 225 ==== {{id name="HTTPauthenticationAPING-getGroups"/}}getGroups ==== ... ... @@ -236,19 +236,8 @@ 236 236 237 237 ====== {{id name="HTTPauthenticationAPING-Responsebody(plainnon-JSONvariant)"/}}(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)Response body (plain non-JSON variant)(%%) ====== 238 238 239 -(% style="color: rgb(0,0,0);" %)List of group names, separated by '(% style="color: rgb(0,0,0);" %){{code language="none"}},{{/code}}' or just '(% style="color: rgb(0,0,0);" %){{code language="none"}}-{{/code}}' if the user is not member of any group, or '(% style="color: rgb(0,0,0);" %){{code language="none"}}--{{/code}}' if there is no group support. 229 +(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %) (% style="color: rgb(0,0,0);" %)List of group names, separated by '(% style="color: rgb(0,0,0);" %){{code language="none"}},{{/code}}' or just '(% style="color: rgb(0,0,0);" %){{code language="none"}}-{{/code}}' if the user is not member of any group, or '(% style="color: rgb(0,0,0);" %){{code language="none"}}--{{/code}}' if there is no group support. 240 240 241 -====== {{id name="HTTPauthenticationAPING-Responsebody(JSONvariant)"/}}Response body (JSON variant) ====== 242 - 243 -The following example shows a list of 2 groups, one with maximum details, one wiht miniimal details: 244 - 245 -{{code language="none"}} 246 -[ 247 - { "group" : "users", "prettyName" : "Human users of this system", "domain" : "MYDOMAIN" } , 248 - { "group" : "dialout" } 249 -] 250 -{{/code}} 251 - 252 252 ==== {{id name="HTTPauthenticationAPING-getGroupMembers"/}}getGroupMembers ==== 253 253 254 254 Returns the users the are a member of the specified group. ... ... @@ -265,16 +265,6 @@ 265 265 266 266 (% style="color: rgb(0,0,0);" %)List of group names, separated by '{{code language="none"}},{{/code}}' or just '{{code language="none"}}-{{/code}}' if the user is not member of any group, or '{{code language="none"}}--{{/code}}' if there is no group support. 267 267 268 -====== {{id name="HTTPauthenticationAPING-Responsebody(JSONvariant)"/}}Response body (JSON variant) ====== 269 - 270 -{{code language="none"}} 271 -[ 272 - { "user" : "leonard", "prettyName" : "Leonard Hofstaetter", "eMailAddress" : "lh@tbbt.foo.bar" } , 273 - { "user" : "penny" } , 274 - { "user" : "sheldon" } 275 -] 276 -{{/code}} 277 - 278 278 ==== {{id name="HTTPauthenticationAPING-sendPassword"/}}sendPassword ==== 279 279 280 280 Generates a new password or send a "new password" link to the user. ... ... @@ -308,22 +308,4 @@ 308 308 309 309 (% style="color: rgb(0,0,0);" %)Non-empty information text, not more than 1024 bytes. The message may go into logfiles and should not be displayed to the user. 310 310 311 -====== {{id name="HTTPauthenticationAPING-Responsebody(JSONvariant)"/}}Response body (JSON variant) ====== 312 - 313 -Successful, with response code 200: 314 - 315 -{{code language="none"}} 316 -{ "user" : "jdoe", "prettyName" : "John Doe", "eMailAddress" : "jdoe@foo.bar" } 317 -{{/code}} 318 - 319 -Not found, with response code 404: 320 - 321 -{{code language="none"}} 322 -{ "error" : "user not found" } 323 -{{/code}} 324 - 325 -Problem, with repsonse code 500: 326 - 327 -{{code language="none"}} 328 -{ "error" : "Operation not supported by backend for specified domain" } 329 -{{/code}} 280 +
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -688 6681 +688875 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://clazzes.atlassian.net/wiki/spaces/LOGIN/pages/688 668/HTTP authentication API NG1 +https://clazzes.atlassian.net/wiki/spaces/LOGIN/pages/688875/HTTP authentication API NG