Skip to content

Commit

Permalink
Equalize iOS and macOS auth implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
p2 committed Sep 16, 2016
1 parent 4c03fbf commit f4f28db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Client/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion Sources/OSX/Auth+OSX.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/iOS/Auth+iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4f28db

Please sign in to comment.