Skip to content

Commit b458bd7

Browse files
authored
Merge pull request #298 from ganesh-bruno/fix/oauth2-rename
added changes for to oauth docs
2 parents f2c8a47 + f389a35 commit b458bd7

File tree

9 files changed

+13
-5
lines changed

9 files changed

+13
-5
lines changed

src/pages/auth/_meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
"overview": "Overview",
33
"oauth2": "OAuth 2.0 (v1.x.x)",
4-
"oauth2-experimental": "OAuth 2.0 (v2.x.x)",
4+
"oauth2-2.0": "OAuth 2.0 (v2.x.x)",
55
"aws-signature": "AWS Signature",
66
"basic": "Basic",
77
"bearer": "Bearer",
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/pages/auth/oauth2-experimental/overview.mdx renamed to src/pages/auth/oauth2-2.0/overview.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ Bruno supports OAuth 2 authentication at both collection and request levels:
2323
3. **Automatic Token Injection**: Bruno automatically adds the token to request headers or parameters based on your configuration
2424
4. **Token Data Access**: Access token data using variables: `{{$oauth2.<tokenId>.access_token}}` within the collection
2525

26-
<br />
27-
<br />
28-
<br />
26+
## Accessing OAuth2 Tokens in Scripts
27+
28+
You can access OAuth2 tokens in your scripts using the `bru.getOauth2CredentialVar()` function.
29+
30+
### Syntax
31+
32+
```javascript
33+
bru.getOauth2CredentialVar('$oauth2.<Token ID>.access_token')
34+
```
35+
36+
File renamed without changes.
File renamed without changes.

src/pages/auth/oauth2/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Callout } from "nextra/components";
33
# Oauth 2.0 authentication in Bruno
44

55
<Callout type="warning" emoji="">
6-
This OAuth 2 implementation is **specific to Bruno v1.x.x**. If using Bruno v2.x.x, please see the [documentation for that version](/auth/oauth2-experimental/overview).
6+
This OAuth 2 implementation is **specific to Bruno v1.x.x**. If using Bruno v2.x.x, please see the [documentation for that version](/auth/oauth2-2.0/overview).
77

88
</Callout>
99

0 commit comments

Comments
 (0)