Skip to content

Commit 61e36b4

Browse files
committed
feat: OAuth 2.0 Client Credentials as Basic Auth - update test data
#2106
1 parent 1a9d97f commit 61e36b4

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
@@ -26,6 +26,19 @@ auth:digest {
2626
password: secret
2727
}
2828

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+
2942
vars:pre-request {
3043
departingDate: 2020-01-01
3144
~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
@@ -31,6 +31,18 @@
3131
"digest": {
3232
"username": "john",
3333
"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
3446
}
3547
},
3648
"vars": {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ auth:oauth2 {
5656
access_token_url: http://localhost:8080/api/auth/oauth2/authorization_code/token
5757
client_id: client_id_1
5858
client_secret: client_secret_1
59+
client_secret_method: client_credentials_basic
5960
scope: read write
6061
state: 807061d5f0be
6162
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)