User Tools

Site Tools


authentication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
authentication [2025/03/24 13:55] – add uml diagram (thanks lily!) winterauthentication [2026/01/20 17:32] (current) – external edit 127.0.0.1
Line 38: Line 38:
 A -> B: ""GET"" Server B auth \n\ A -> B: ""GET"" Server B auth \n\
  ""?phase=dialback""\n\  ""?phase=dialback""\n\
- ""?target=<Server A dialback>"" + ""&target=<Server A dialback>"" 
-A <-- B: 202 Accepted / 204 No content+A <-- B: 202 Accepted / 204 No Content
 ...Potentially some delay... ...Potentially some delay...
 B -> A: ""POST"" Server A dialback\n\ B -> A: ""POST"" Server A dialback\n\
  ""origin=Server B domain""\n\  ""origin=Server B domain""\n\
  ""secret=<generated secret>""  ""secret=<generated secret>""
-B <-- A: 202 Accepted / 204 No content+B <-- A: 202 Accepted / 204 No Content
 A -> B: ""GET"" Server B auth\n\ A -> B: ""GET"" Server B auth\n\
  ""?phase=token""\n\  ""?phase=token""\n\
- ""?secret=<generated secret from B>"" + ""&secret=<generated secret from B>"" 
-A <-- B: 200 Ok / 201 Created\n\+A <-- B: 200 OK / 201 Created\n\
  {{json\n{\n\  {{json\n{\n\
  "token": "<token>",\n\  "token": "<token>",\n\
Line 63: Line 63:
  <&header> ""Authentication: Bearer <token>""  <&header> ""Authentication: Bearer <token>""
  
-A <-- B: 200 Ok / 201 Created\n\+A <-- B: 200 OK / 201 Created\n\
  {{json\n{\n\  {{json\n{\n\
  "token": "<token>",\n\  "token": "<token>",\n\
Line 70: Line 70:
 @enduml @enduml
 </uml> </uml>
 +
 +<WRAP center round todo 80%>
 +are we sure that this can use different HTTP response codes? e.g. "200 OK / 201 Created" ? or would it be better to just pick one that should be used in all cases?
 +</WRAP>
  
authentication.1742824513.txt.gz · Last modified: (external edit)