-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuaa.internal.cloud.http
29 lines (23 loc) · 1.04 KB
/
uaa.internal.cloud.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@auth=<auth endpoint from cloud deployment>
@internalClientId=<xsuaa intenral client id>
@internalClientSecret=<xsuaa intenral client secret>
# Browser: https://{{auth}}/passcode
@passcode=<passcode from browser>
### Basic (technical)
POST https://{{auth}}/oauth/token?grant_type=client_credentials
Accept: application/json
Authorization: Basic {{internalClientId}} {{internalClientSecret}}
### Basic (user specific)
POST https://{{auth}}/oauth/token?grant_type=password&passcode={{passcode}}
Accept: application/json
Authorization: Basic {{internalClientId}} {{internalClientSecret}}
### Form (technical)
POST https://{{auth}}/oauth/token
Content-Type: application/x-www-form-urlencoded
Accept: application/json
grant_type=client_credentials&client_id={{internalClientId}}&client_secret={{internalClientSecret}}
### Form (user specific)
POST https://{{auth}}/oauth/token
Content-Type: application/x-www-form-urlencoded
Accept: application/json
grant_type=password&client_id={{internalClientId}}&client_secret={{internalClientSecret}}&passcode={{passcode}}