fix: better scope handling
This commit is contained in:
parent
a7f6c28e0d
commit
81b249d341
10 changed files with 61 additions and 30 deletions
|
|
@ -7,7 +7,7 @@ curl -v http://localhost:8085/authorize \
|
|||
-d client_id="a1785786-8be1-443c-9a6f-35feed703609" \
|
||||
-d response_type="code" \
|
||||
-d redirect_uri="http://localhost:9090/authorize" \
|
||||
-d scope="read_basics" \
|
||||
-d scope="user_read_basic" \
|
||||
-d state="qxYAfk4kf6pbZkms78jM"
|
||||
|
||||
code="$(cat tmp/headers.txt | grep -i "location" | awk -F ": " '{print $2}' | trurl -f - -g "{query:code}")"
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ oauth2c http://localhost:8085 \
|
|||
--response-mode query \
|
||||
--grant-type authorization_code \
|
||||
--auth-method client_secret_basic \
|
||||
--scopes "read_user_basic"
|
||||
--scopes "user_read_basic"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue