You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec.json
+90Lines changed: 90 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -587,6 +587,96 @@
587
587
}
588
588
}
589
589
},
590
+
"/auth/local/login": {
591
+
"post": {
592
+
"security": [
593
+
{
594
+
"basicAuth": []
595
+
}
596
+
],
597
+
"consumes": [
598
+
"application/x-www-form-urlencoded"
599
+
],
600
+
"produces": [
601
+
"application/json"
602
+
],
603
+
"tags": [
604
+
"auth"
605
+
],
606
+
"summary": "Authenticate via basic auth and create a session.",
607
+
"operationId": "localLogin",
608
+
"parameters": [
609
+
{
610
+
"type": "string",
611
+
"description": "the client name to create",
612
+
"name": "name",
613
+
"in": "formData",
614
+
"required": true
615
+
}
616
+
],
617
+
"responses": {
618
+
"200": {
619
+
"description": "Ok",
620
+
"schema": {
621
+
"$ref": "#/definitions/UserExternal"
622
+
},
623
+
"headers": {
624
+
"Set-Cookie": {
625
+
"type": "string",
626
+
"description": "session cookie"
627
+
}
628
+
}
629
+
},
630
+
"401": {
631
+
"description": "Unauthorized",
632
+
"schema": {
633
+
"$ref": "#/definitions/Error"
634
+
}
635
+
}
636
+
}
637
+
}
638
+
},
639
+
"/auth/logout": {
640
+
"post": {
641
+
"security": [
642
+
{
643
+
"clientTokenHeader": []
644
+
},
645
+
{
646
+
"clientTokenQuery": []
647
+
},
648
+
{
649
+
"basicAuth": []
650
+
}
651
+
],
652
+
"description": "Clears the session cookie and deletes the associated client.",
653
+
"produces": [
654
+
"application/json"
655
+
],
656
+
"tags": [
657
+
"auth"
658
+
],
659
+
"summary": "End the current session.",
660
+
"operationId": "logout",
661
+
"responses": {
662
+
"200": {
663
+
"description": "Ok",
664
+
"headers": {
665
+
"Set-Cookie": {
666
+
"type": "string",
667
+
"description": "cleared session cookie"
668
+
}
669
+
}
670
+
},
671
+
"400": {
672
+
"description": "Bad Request",
673
+
"schema": {
674
+
"$ref": "#/definitions/Error"
675
+
}
676
+
}
677
+
}
678
+
}
679
+
},
590
680
"/auth/oidc/callback": {
591
681
"get": {
592
682
"description": "Exchanges the authorization code for tokens, resolves the user,\ncreates a gotify client, sets a session cookie, and redirects to the UI.",
0 commit comments