From ba03f0bc07844212474d75fe5ece4d639d4d883b Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 30 Oct 2020 14:29:08 -0500 Subject: [PATCH] Adjust parameters to deal with Reddit's recent, stricter parameter checks --- .../Account/FeedProvider/Reddit/RedditFeedProvider.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift b/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift index 91f87218e..9f740a5a8 100644 --- a/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift +++ b/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift @@ -280,7 +280,7 @@ extension RedditFeedProvider: OAuth2SwiftProvider { consumerSecret: "", authorizeUrl: "https://www.reddit.com/api/v1/authorize.compact?", accessTokenUrl: "https://www.reddit.com/api/v1/access_token", - responseType: "token") + responseType: "code") oauth2.accessTokenBasicAuthentification = true return oauth2 } @@ -293,12 +293,7 @@ extension RedditFeedProvider: OAuth2SwiftProvider { let state = generateState(withLength: 20) let scope = "identity mysubreddits read" let params = [ - "client_id" : SecretsManager.provider.redditConsumerKey, - "response_type" : "code", - "state" : state, - "redirect_uri" : "netnewswire://success", "duration" : "permanent", - "scope" : scope ] return (state: state, scope: scope, params: params) }