@@ -32,30 +32,30 @@ The configuration is done by the following environment variables. (see [`docker
3232
3333### GET /login
3434
35- - Request
35+ - Request
3636
3737``` sh
3838curl --request GET \
3939 --url ' https://sso.piyaphat.com/login?service=https://www.google.com'
4040```
4141
42- - Response 302 Found
42+ - Response 302 Found
4343
4444``` js
4545// (on-success) 302 Location: https://www.google.com?ticket=86966dc5-2049-428f-88fe-2d78a5985d38
4646```
4747
48- - Response 400 Bad Request
48+ - Response 400 Bad Request
4949
5050``` json
5151{
52- "error" : " Key: 'GetLoginRequest.Service' Error:Field validation for 'Service' failed on the 'required' tag"
52+ "error" : " Key: 'GetLoginRequest.Service' Error:Field validation for 'Service' failed on the 'required' tag"
5353}
5454```
5555
5656### GET, POST /serviceValidation
5757
58- - Request
58+ - Request
5959
6060``` sh
6161curl --request POST \
@@ -65,29 +65,29 @@ curl --request POST \
6565 --header ' DeeTicket: 1b50cf0d-ceed-46da-a672-4c61060ece8d'
6666```
6767
68- - Response 200 (application/json)
68+ - Response 200 (application/json)
6969
7070``` json
7171{
72- "uid" :" 6200000001 " ,
73- "username" :" Prayut-Chan-Angkhan " ,
74- "gecos" :" Prayut- Chan-Angkhan" ,
75- "disable" :false ,
76- "roles" :[" student" ],
77- "firstname" :" Prayut" ,
78- "firstnameth" :" Prayut" ,
79- "lastname" :" Chan-Angkhan" ,
80- "lastnameth" :" Chan-Angkhan" ,
81- "ouid" :" 6200000001 " ,
82- "email" :" 6200000001 @student.chula.ac.th"
72+ "uid" : " 14c6c69f-21ca-4999-999c-423dde2515ad " ,
73+ "username" : " 6200000021 " ,
74+ "gecos" : " Prayut Chan-Angkhan, ENG " ,
75+ "disable" : false ,
76+ "roles" : [" student" ],
77+ "firstname" : " Prayut" ,
78+ "firstnameth" : " Prayut" ,
79+ "lastname" : " Chan-Angkhan" ,
80+ "lastnameth" : " Chan-Angkhan" ,
81+ "ouid" : " 6200000021 " ,
82+ "email" : " 6200000021 @student.chula.ac.th"
8383}
8484```
8585
86- - Response 401 Unauthorized
86+ - Response 401 Unauthorized
8787
8888``` json
8989{
90- "error" : " ticket not found"
90+ "error" : " ticket not found"
9191}
9292```
9393
0 commit comments