[GH-ISSUE #437] Imgur Oauth2 Demo authorization not working #285

Closed
opened 2026-03-03 16:47:22 +03:00 by kerem · 1 comment
Owner

Originally created by @tomkaith13 on GitHub (Feb 21, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/437

Description:

Unable to get access token and refresh token using the imgur selection in iOS demo app.
I get back this response in the POST from the authorization server:

{
	"data": {
		"error": "The redirect URI provided is missing or does not match",
		"request": "\/oauth2\/authorize",
		"method": "POST"
	},
	"success": false,
	"status": 400
}

It looks like this issue was also reported last year.

OAuth Provider (Twitter, Github, ..):

OAuth Version:

  • Version 1
  • [x ] Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • [ x] CocoaPods
  • Manually

Library version:

  • head
  • [ x] v1.2 (Swift 4.0)
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • [x ] 9.0 (Swift 4.0)

  • 9.0 (Swift 3.2)

  • 8.x (Swift 3.x)

  • 8.0 (Swift 2.3)

  • 7.3.1

  • other: (Please fill in the version you are using.)

  • objective c

Originally created by @tomkaith13 on GitHub (Feb 21, 2018). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/437 ### Description: Unable to get access token and refresh token using the imgur selection in iOS demo app. I get back this response in the POST from the authorization server: ``` { "data": { "error": "The redirect URI provided is missing or does not match", "request": "\/oauth2\/authorize", "method": "POST" }, "success": false, "status": 400 } ``` It looks like this [issue](https://github.com/OAuthSwift/OAuthSwift/issues/401) was also reported last year. ### OAuth Provider (Twitter, Github, ..): ### OAuth Version: - [ ] Version 1 - [x ] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [ x] CocoaPods - [ ] Manually ### Library version: - [ ] head - [ x] v1.2 (Swift 4.0) - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x ] 9.0 (Swift 4.0) - [ ] 9.0 (Swift 3.2) - [ ] 8.x (Swift 3.x) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem closed this issue 2026-03-03 16:47:23 +03:00
Author
Owner

@phimage commented on GitHub (Mar 4, 2018):

the message seems to be clear
"The redirect URI provided is missing or does not match"

Yo must configure in Imgur the authorized redirect URI (callback url)

<!-- gh-comment-id:370218319 --> @phimage commented on GitHub (Mar 4, 2018): the message seems to be clear "The redirect URI provided is missing or does not match" Yo must configure in Imgur the authorized redirect URI (callback url)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#285
No description provided.