We’re happy to share that mabl API tests now support OAuth 2.0!
Previously, if you wanted to obtain an OAuth 2.0 token, you had to manually configure it with a stand-alone step or a pre-request script. Starting with Desktop App version 2.26.0, you can now set the auth method to OAuth 2.0 to automatically generate and send access tokens to your API endpoints!
Setting up OAuth 2.0 at the test level
When you use OAuth 2.0, mabl automatically obtains the access token and sets it as a variable. You can set the name for this access token variable in the Token variable field. If you’ve enabled shared variables, you can also pass on this token variable to subsequent tests in a plan.
To learn more about adding auth in mabl API tests, check out the docs.
Limitation
OAuth 2.0 support is currently limited to client credential grant types. If you have a use case that requires a different grant type, please let us know in the mabl Product Portal.