OAuth2 Client Credentials in Bruno via Scripting

preview_player
Показать описание

In this video, we take a look at scripting within Bruno, particularly focusing on handling OAuth 2 client credentials. Although Bruno lacks native support for OAuth 2, this will guide you through a step-by-step process to implement a workaround using scripting. 🛠️

🔍 What We Cover:

0:00 The absence of OAuth 2 in Bruno.
00:38 Manual Request Handling and response variables
04:01 Applying to Collections instead of individual requests
05:29 Using Scripting for further automation
29:01 Wrap up

==Resources==
Комментарии
Автор

Thanks, you saved me many hours with exceptionally good video

JacquesWentworth
Автор

Thank you for going through the setting the bearer token in such a clear and understandable way, i'd been tripping over entering the variable in the correct format needed 2x {{ and not 1x {

BBolloBB
Автор

Your flow rate shows your experience and confidence. Thanks for your explanation. By the way, I did something similar in Postman as switch ?to=accountId OPTIONS request for multiple accounts/credentials. It takes the requested client credentials and sets the relevant environment variables for them, then fetches new tokens.

osmantas
Автор

Meanwhile OAuth 2.0 was added to Bruno.
Thanks for the video, one can learn how to work with Bruno.

cellcoresystems
Автор

does this script work if we have multiple environments with different token urls

reddington
join shbcf.ru