mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[PR #151] [MERGED] Don't send emtpy Bearer tokens #534
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#534
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/151
Author: @gufo
Created: 11/26/2015
Status: ✅ Merged
Merged: 11/26/2015
Merged by: @phimage
Base:
master← Head:no-empty-bearer-tokens📝 Commits (1)
2e60d92Don't send emtpy Bearer tokens📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
OAuthSwift/OAuthSwiftCredential.swift(+1 -1)📄 Description
As per RFC 6750 the syntax for Bearer authentication is as follows:
Note the
1*which means "at least one repetition".By definition, when one has an OAuth2 code and uses it to request an authorization token, the request cannot be made using Bearer authentication. The sent
Authorizationheader is therefore invalid and can be rejected as a HTTP 400 (Bad Request) error.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.