-
-
Notifications
You must be signed in to change notification settings - Fork 7
Rename 'authorizationProvider' to 'authenticationProvider' #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This completes the rename started in c873afb (this parameter label was missed).
@@ -170,7 +170,7 @@ final class RequestAuthorizerSpec: QuickSpec { | |||
describe("clearToken") { | |||
it("removes the token from token storage") { | |||
let testTokenStorage = SimpleTokenStorage(token: "some-token") | |||
let authorizer = RequestAuthorizer(authorizationProvider: TestAuthenticationProvider(), tokenStorage: testTokenStorage) | |||
let authorizer = RequestAuthorizer(authenticationProvider: TestAuthenticationProvider(), tokenStorage: testTokenStorage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I should disable the line length one. Signal-to-noise is low.
where Provider.Token == Token | ||
{ | ||
let keychainTokenStorage = KeychainTokenStorage<Token>(service: Provider.keychainServiceName, label: Provider.identifier) | ||
self.init(authorizationProvider: authorizationProvider, tokenStorage: keychainTokenStorage, applicationDelegate: applicationDelegate, urlSession: urlSession) | ||
self.init(authenticationProvider: authenticationProvider, tokenStorage: keychainTokenStorage, applicationDelegate: applicationDelegate, urlSession: urlSession) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 163 characters (line_length)
@@ -282,11 +282,11 @@ public final class RequestAuthorizer<Token>: RequestAuthorizerProtocol { | |||
} | |||
|
|||
extension RequestAuthorizer where Token: KeychainDecodable & KeychainEncodable { | |||
public convenience init<Provider: AuthenticationProvider>(authorizationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared) | |||
public convenience init<Provider: AuthenticationProvider>(authenticationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 230 characters (line_length)
@@ -13,13 +13,13 @@ public final class RequestAuthorizer<Token>: RequestAuthorizerProtocol { | |||
private let authenticationComplete: Channel<AuthenticationResult<Token>> | |||
private let authenticationState: Actor<AuthenticationState<Token>> | |||
|
|||
public init<Provider: AuthenticationProvider, Storage: TokenStorage>(authorizationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared) | |||
public init<Provider: AuthenticationProvider, Storage: TokenStorage>(authenticationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 264 characters (line_length)
|
||
public extension RequestAuthorizer where Token: KeychainDecodable & KeychainEncodable { | ||
@available(*, unavailable, renamed: "init(authenticationProvider:applicationDelegate:urlSession:)") | ||
convenience init<Provider: AuthenticationProvider>(authorizationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 199 characters (line_length)
|
||
public extension RequestAuthorizer { | ||
@available(*, unavailable, renamed: "init(authenticationProvider:tokenStorage:applicationDelegate:urlSession:)") | ||
convenience init<Provider: AuthenticationProvider, Storage: TokenStorage>(authorizationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 245 characters (line_length)
public extension RequestAuthorizer where Token: KeychainDecodable & KeychainEncodable { | ||
@available(*, unavailable, renamed: "init(authenticationProvider:applicationDelegate:urlSession:)") | ||
convenience init<Provider: AuthenticationProvider>(authorizationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared) | ||
where Provider.Token == Token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opening Brace Spacing Violation: Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)
public extension RequestAuthorizer { | ||
@available(*, unavailable, renamed: "init(authenticationProvider:tokenStorage:applicationDelegate:urlSession:)") | ||
convenience init<Provider: AuthenticationProvider, Storage: TokenStorage>(authorizationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared) | ||
where Provider.Token == Token, Storage.Token == Token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opening Brace Spacing Violation: Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)
This completes the rename started in c873afb (this parameter label was missed).