Skip to content

Commit

Permalink
feat: OAuth 2.0 Client Credentials as Basic Auth - update test data
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrygamat committed Jul 26, 2024
1 parent 1d1a98b commit 47c4eeb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/bruno-lang/v2/tests/fixtures/collection.bru
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ auth:digest {
password: secret
}

auth:oauth2 {
grant_type: authorization_code
callback_url: http://localhost:8080/api/auth/oauth2/authorization_code/callback
authorization_url: http://localhost:8080/api/auth/oauth2/authorization_code/authorize
access_token_url: http://localhost:8080/api/auth/oauth2/authorization_code/token
client_id: client_id_1
client_secret: client_secret_1
client_secret_method: client_credentials_post
scope: read write
state: 807061d5f0be
pkce: false
}

vars:pre-request {
departingDate: 2020-01-01
~returningDate: 2020-01-02
Expand Down
12 changes: 12 additions & 0 deletions packages/bruno-lang/v2/tests/fixtures/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@
"digest": {
"username": "john",
"password": "secret"
},
"oauth2": {
"grantType": "authorization_code",
"clientId": "client_id_1",
"clientSecret": "client_secret_1",
"clientSecretMethod": "client_credentials_post",
"authorizationUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/authorize",
"callbackUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/callback",
"accessTokenUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/token",
"scope": "read write",
"state": "807061d5f0be",
"pkce": false
}
},
"vars": {
Expand Down
1 change: 1 addition & 0 deletions packages/bruno-lang/v2/tests/fixtures/request.bru
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ auth:oauth2 {
access_token_url: http://localhost:8080/api/auth/oauth2/authorization_code/token
client_id: client_id_1
client_secret: client_secret_1
client_secret_method: client_credentials_basic
scope: read write
state: 807061d5f0be
pkce: false
Expand Down
1 change: 1 addition & 0 deletions packages/bruno-lang/v2/tests/fixtures/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"grantType": "authorization_code",
"clientId": "client_id_1",
"clientSecret": "client_secret_1",
"clientSecretMethod": "client_credentials_basic",
"authorizationUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/authorize",
"callbackUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/callback",
"accessTokenUrl": "http://localhost:8080/api/auth/oauth2/authorization_code/token",
Expand Down

0 comments on commit 47c4eeb

Please sign in to comment.