File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed
packages/bruno-lang/v2/tests/fixtures Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,19 @@ auth:digest {
26
26
password: secret
27
27
}
28
28
29
+ auth:oauth2 {
30
+ grant_type: authorization_code
31
+ callback_url: http://localhost:8080/api/auth/oauth2/authorization_code/callback
32
+ authorization_url: http://localhost:8080/api/auth/oauth2/authorization_code/authorize
33
+ access_token_url: http://localhost:8080/api/auth/oauth2/authorization_code/token
34
+ client_id: client_id_1
35
+ client_secret: client_secret_1
36
+ client_secret_method: client_credentials_post
37
+ scope: read write
38
+ state: 807061d5f0be
39
+ pkce: false
40
+ }
41
+
29
42
vars:pre-request {
30
43
departingDate: 2020-01-01
31
44
~returningDate: 2020-01-02
Original file line number Diff line number Diff line change 31
31
"digest" : {
32
32
"username" : " john" ,
33
33
"password" : " secret"
34
+ },
35
+ "oauth2" : {
36
+ "grantType" : " authorization_code" ,
37
+ "clientId" : " client_id_1" ,
38
+ "clientSecret" : " client_secret_1" ,
39
+ "clientSecretMethod" : " client_credentials_post" ,
40
+ "authorizationUrl" : " http://localhost:8080/api/auth/oauth2/authorization_code/authorize" ,
41
+ "callbackUrl" : " http://localhost:8080/api/auth/oauth2/authorization_code/callback" ,
42
+ "accessTokenUrl" : " http://localhost:8080/api/auth/oauth2/authorization_code/token" ,
43
+ "scope" : " read write" ,
44
+ "state" : " 807061d5f0be" ,
45
+ "pkce" : false
34
46
}
35
47
},
36
48
"vars" : {
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ auth:oauth2 {
56
56
access_token_url: http://localhost:8080/api/auth/oauth2/authorization_code/token
57
57
client_id: client_id_1
58
58
client_secret: client_secret_1
59
+ client_secret_method: client_credentials_basic
59
60
scope: read write
60
61
state: 807061d5f0be
61
62
pkce: false
Original file line number Diff line number Diff line change 77
77
"grantType" : " authorization_code" ,
78
78
"clientId" : " client_id_1" ,
79
79
"clientSecret" : " client_secret_1" ,
80
+ "clientSecretMethod" : " client_credentials_basic" ,
80
81
"authorizationUrl" : " http://localhost:8080/api/auth/oauth2/authorization_code/authorize" ,
81
82
"callbackUrl" : " http://localhost:8080/api/auth/oauth2/authorization_code/callback" ,
82
83
"accessTokenUrl" : " http://localhost:8080/api/auth/oauth2/authorization_code/token" ,
You can’t perform that action at this time.
0 commit comments