You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call to /request_token after canceling a request fails with an HTTP error 401 because credential.oauth_token is already set and is passed to the headers parameters.
I am trying to verify that we can correctly cancel a login attempt to Garmin made with our view controller that implements OAuthWebViewController.
We are canceling the login attempt like this:
But if we try to call service.authorize again, the call fails without opening our custom OAuthWebViewController with a 401 unauthorized error, and the difference is that in the second call the oauth_token parameter is set.
Are we canceling the request the wrong way? Is Garmin supposed to check oauth_token? Is oauth_token supposed to be still set after canceling a request?
OAuth Provider? (Twitter, Github, ..):
Garmin
OAuth Version:
Version 1
Version 2
OS (Please fill the version) :
iOS :
OSX :
TVOS :
WatchOS :
Installation method:
Carthage
CocoaPods
Swift Package Manager
Manually
Library version:
head
v2.2.0
v2.0.0
v1.4.1
other: (Please fill in the version you are using.)
Xcode version:
11.4 (Swift 5.2)
11.x (Swift 5.1)
10.x (Swift 5.0)
other: 14.1 but irrelevant
The text was updated successfully, but these errors were encountered:
Description:
Call to
/request_token
after canceling a request fails with an HTTP error 401 becausecredential.oauth_token
is already set and is passed to the headers parameters.I am trying to verify that we can correctly cancel a login attempt to Garmin made with our view controller that implements
OAuthWebViewController
.We are canceling the login attempt like this:
But if we try to call
service.authorize
again, the call fails without opening our customOAuthWebViewController
with a 401 unauthorized error, and the difference is that in the second call theoauth_token
parameter is set.Are we canceling the request the wrong way? Is Garmin supposed to check
oauth_token
? Isoauth_token
supposed to be still set after canceling a request?OAuth Provider? (Twitter, Github, ..):
Garmin
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
The text was updated successfully, but these errors were encountered: