main
1
2#### POST http://localhost:5000/oauth/clients
3
4Example curl request:
5
6```bash
7$ curl http://localhost:5000/oauth/clients \
8 -X POST \
9 -d '{"redirect_uris":["https://ernser.com","https://schultz.biz"],"client_name":"Jeffrey Jewess","token_endpoint_auth_method":"client_secret_basic","logo_uri":"https://hagenesjohnson.com","jwks_uri":"https://balistreri.biz"}' \
10 -H "Accept: application/json" \
11 -H "Content-Type: application/json" \
12 -H "User-Agent: net/hippie 0.1.9" \
13 -H "Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
14```
15Request:
16```text
17Accept: application/json
18Content-Type: application/json
19User-Agent: net/hippie 0.1.9
20Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21```
22```json
23{
24 "redirect_uris": [
25 "https://ernser.com",
26 "https://schultz.biz"
27 ],
28 "client_name": "Jeffrey Jewess",
29 "token_endpoint_auth_method": "client_secret_basic",
30 "logo_uri": "https://hagenesjohnson.com",
31 "jwks_uri": "https://balistreri.biz"
32}
33```
34Response:
35```text
36201 Created
37
38Cache-Control: no-cache, no-store
39Pragma: no-cache
40Content-Type: application/json; charset=utf-8
41X-Request-Id: 7962b362-cf07-4b8e-944c-5a8e699f4f5d
42Transfer-Encoding: chunked
43```
44```json
45{
46 "client_id": "b982b9b8-a3f8-49c7-ac22-5a1390f473f6",
47 "client_secret": "HNkbB3iTvgVmaiZeCchsaRJC",
48 "client_id_issued_at": 1540834467,
49 "client_secret_expires_at": 0,
50 "redirect_uris": [
51 "https://ernser.com",
52 "https://schultz.biz"
53 ],
54 "grant_types": [
55 "authorization_code",
56 "refresh_token",
57 "client_credentials",
58 "password",
59 "urn:ietf:params:oauth:grant-type:saml2-bearer"
60 ],
61 "client_name": "Jeffrey Jewess",
62 "token_endpoint_auth_method": "client_secret_basic",
63 "logo_uri": "https://hagenesjohnson.com",
64 "jwks_uri": "https://balistreri.biz"
65}
66```
67