Skip to content

Commit 23cfb49

Browse files
committed
feat: OAuth 2.0 Client Credentials as Basic Auth - update test data
1 parent 1ec999e commit 23cfb49

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

packages/bruno-lang/v2/tests/fixtures/collection.bru

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ auth:digest {
3131
password: secret
3232
}
3333

34+
auth:oauth2 {
35+
grant_type: authorization_code
36+
callback_url: http://localhost:8080/api/auth/oauth2/authorization_code/callback
37+
authorization_url: http://localhost:8080/api/auth/oauth2/authorization_code/authorize
38+
access_token_url: http://localhost:8080/api/auth/oauth2/authorization_code/token
39+
client_id: client_id_1
40+
client_secret: client_secret_1
41+
client_secret_method: client_credentials_post
42+
scope: read write
43+
state: 807061d5f0be
44+
pkce: false
45+
}
46+
3447
vars:pre-request {
3548
departingDate: 2020-01-01
3649
~returningDate: 2020-01-02

packages/bruno-lang/v2/tests/fixtures/collection.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@
3232
"username": "john",
3333
"password": "secret"
3434
},
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
46+
},
3547
"wsse": {
3648
"username": "john",
3749
"password": "secret"

packages/bruno-lang/v2/tests/fixtures/request.bru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ auth:oauth2 {
6161
access_token_url: http://localhost:8080/api/auth/oauth2/authorization_code/token
6262
client_id: client_id_1
6363
client_secret: client_secret_1
64+
client_secret_method: client_credentials_basic
6465
scope: read write
6566
state: 807061d5f0be
6667
pkce: false

packages/bruno-lang/v2/tests/fixtures/request.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"grantType": "authorization_code",
7878
"clientId": "client_id_1",
7979
"clientSecret": "client_secret_1",
80+
"clientSecretMethod": "client_credentials_basic",
8081
"authorizationUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/authorize",
8182
"callbackUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/callback",
8283
"accessTokenUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/token",

0 commit comments

Comments
 (0)