From 4041f024e61e62be0a373786c8294bc4665000a4 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 23 Apr 2024 19:25:21 -0700 Subject: [PATCH] Rename authorizationCodeURLRequest --- .../Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift | 2 +- Account/Sources/Account/Feedly/FeedlyAPICaller.swift | 2 +- .../Sources/Account/Feedly/OAuthAuthorizationCodeGranting.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift index 00c1d937c..9c1ef6717 100644 --- a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift +++ b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift @@ -35,7 +35,7 @@ extension FeedlyAccountDelegate: OAuthAuthorizationGranting { scope: oauthAuthorizationGrantScope, state: client.state) let baseURLComponents = environment.baseUrlComponents - return FeedlyAPICaller.authorizationCodeUrlRequest(for: authorizationRequest, baseUrlComponents: baseURLComponents) + return FeedlyAPICaller.authorizationCodeURLRequest(for: authorizationRequest, baseUrlComponents: baseURLComponents) } static func requestOAuthAccessToken(with response: OAuthAuthorizationResponse, transport: any Web.Transport, secretsProvider: any Secrets.SecretsProvider) async throws -> OAuthAuthorizationGrant { diff --git a/Account/Sources/Account/Feedly/FeedlyAPICaller.swift b/Account/Sources/Account/Feedly/FeedlyAPICaller.swift index 8303e881b..bceda7ee4 100644 --- a/Account/Sources/Account/Feedly/FeedlyAPICaller.swift +++ b/Account/Sources/Account/Feedly/FeedlyAPICaller.swift @@ -304,7 +304,7 @@ extension FeedlyAPICaller: FeedlyAddFeedToCollectionService { extension FeedlyAPICaller: OAuthAuthorizationCodeGrantRequesting { - static func authorizationCodeUrlRequest(for request: OAuthAuthorizationRequest, baseUrlComponents: URLComponents) -> URLRequest { + static func authorizationCodeURLRequest(for request: OAuthAuthorizationRequest, baseUrlComponents: URLComponents) -> URLRequest { var components = baseUrlComponents components.path = "/v3/auth/auth" components.queryItems = request.queryItems diff --git a/Account/Sources/Account/Feedly/OAuthAuthorizationCodeGranting.swift b/Account/Sources/Account/Feedly/OAuthAuthorizationCodeGranting.swift index 6fdbff954..24e907534 100644 --- a/Account/Sources/Account/Feedly/OAuthAuthorizationCodeGranting.swift +++ b/Account/Sources/Account/Feedly/OAuthAuthorizationCodeGranting.swift @@ -157,7 +157,7 @@ public protocol OAuthAuthorizationCodeGrantRequesting { /// Provides the URL request that allows users to consent to the client having access to their information. Typically loaded by a web view. /// - Parameter request: The information about the client requesting authorization to be granted access tokens. /// - Parameter baseUrlComponents: The scheme and host of the url except for the path. - static func authorizationCodeUrlRequest(for request: OAuthAuthorizationRequest, baseUrlComponents: URLComponents) -> URLRequest + static func authorizationCodeURLRequest(for request: OAuthAuthorizationRequest, baseUrlComponents: URLComponents) -> URLRequest /// Performs the request for the access token given an authorization code.