Skip to content

Fix OAuth2 Example Code - #1844

Merged
alexeyzimarev merged 1 commit into
restsharp:devfrom
jaredwaller:patch-1
May 6, 2022
Merged

alexeyzimarev merged 1 commit into
restsharp:devfrom
jaredwaller:patch-1

Conversation

@jaredwaller

@jaredwaller jaredwaller commented Apr 27, 2022 •

Copy link
Copy Markdown
Contributor

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]".

Description

Purpose

This pull request is a:

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

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]".
@alexeyzimarev
alexeyzimarev merged commit 7f40f6c into restsharp:dev May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants