diff --git a/Sources/Client/Auth.swift b/Sources/Client/Auth.swift index 1ffc1acb..f6855149 100644 --- a/Sources/Client/Auth.swift +++ b/Sources/Client/Auth.swift @@ -214,8 +214,8 @@ class Auth { } oa.scope = scope - // start authorization (method implemented in iOS and OS X extensions) - authorizeWith(oa, properties: properties) + // start authorization (method implemented in iOS and macOS extensions) + authorize(with: oa, properties: properties) } // open server? diff --git a/Sources/OSX/Auth+OSX.swift b/Sources/OSX/Auth+OSX.swift index b8bc6f3e..37a70cba 100644 --- a/Sources/OSX/Auth+OSX.swift +++ b/Sources/OSX/Auth+OSX.swift @@ -12,7 +12,7 @@ import Cocoa extension Auth { /** Show the authorization view controller corresponding to the auth properties. */ - func authorizeWith(_ oauth: OAuth2, properties: SMARTAuthProperties) { + func authorize(with oauth: OAuth2, properties: SMARTAuthProperties) { oauth.authConfig.authorizeContext = authContext oauth.authConfig.authorizeEmbedded = properties.embedded oauth.authConfig.authorizeEmbeddedAutoDismiss = properties.granularity != .patientSelectNative diff --git a/Sources/iOS/Auth+iOS.swift b/Sources/iOS/Auth+iOS.swift index 38a2bf15..73a18e09 100644 --- a/Sources/iOS/Auth+iOS.swift +++ b/Sources/iOS/Auth+iOS.swift @@ -17,7 +17,7 @@ extension Auth { - parameter oauth: The OAuth2 instance to use for authorization - parameter properties: SMART authorization properties to use */ - func authorizeWith(oauth: OAuth2, properties: SMARTAuthProperties) { + func authorize(with oauth: OAuth2, properties: SMARTAuthProperties) { authContext = UIApplication.shared.keyWindow?.rootViewController oauth.authConfig.authorizeContext = authContext