From 96909ab6ea6d13bea2aebeb3119f7675eaf4131f Mon Sep 17 00:00:00 2001 From: Jared Waller <32147020+jaredwaller@users.noreply.github.com> Date: Tue, 26 Apr 2022 21:00:36 -0500 Subject: [PATCH] Fix OAuth2 Example Code The token and token type are backwards. When using the current code, it will set the Authorization Header to "[token] Bearer". Switching them around fixes the issue and sets the Authorization Header to "Bearer [token]". --- docs/authenticators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/authenticators.md b/docs/authenticators.md index efb77f719..ba0169722 100644 --- a/docs/authenticators.md +++ b/docs/authenticators.md @@ -65,7 +65,7 @@ For example: ```csharp client.Authenticator = new OAuth2AuthorizationRequestHeaderAuthenticator( - "Bearer", token + token, "Bearer" ); ```