aswebauthenticationsession

ASWebAuthenticationSession in MacOS 10.15 (Catalina)

爷,独闯天下 提交于 2021-02-07 07:57:32
问题 I am trying to implement the new ASWebAuthenticationSession in MacOS 10.15 and I'm getting a bit confused about the callbackURLScheme . The header file for ASWebAuthenticationSession says: The callback URL usually has a custom URL scheme. For the app to receive the callback URL, it needs to either register the custom URL scheme in its Info.plist, or set the scheme to callbackURLScheme argument in the initializer. So I initialize like this: self.webAuthSession = [[ASWebAuthenticationSession

ASWebAuthenticationSession in MacOS 10.15 (Catalina)

落爺英雄遲暮 提交于 2021-02-07 07:55:03
问题 I am trying to implement the new ASWebAuthenticationSession in MacOS 10.15 and I'm getting a bit confused about the callbackURLScheme . The header file for ASWebAuthenticationSession says: The callback URL usually has a custom URL scheme. For the app to receive the callback URL, it needs to either register the custom URL scheme in its Info.plist, or set the scheme to callbackURLScheme argument in the initializer. So I initialize like this: self.webAuthSession = [[ASWebAuthenticationSession

ASWebAuthenticationSession in MacOS 10.15 (Catalina)

依然范特西╮ 提交于 2021-02-07 07:55:03
问题 I am trying to implement the new ASWebAuthenticationSession in MacOS 10.15 and I'm getting a bit confused about the callbackURLScheme . The header file for ASWebAuthenticationSession says: The callback URL usually has a custom URL scheme. For the app to receive the callback URL, it needs to either register the custom URL scheme in its Info.plist, or set the scheme to callbackURLScheme argument in the initializer. So I initialize like this: self.webAuthSession = [[ASWebAuthenticationSession

Using ASWebAuthenticationSession to connect to Strava account fails

只愿长相守 提交于 2020-03-03 12:24:26
问题 I have trouble using the new ASWebAuthenticationSession class that is used for the OAuth2 process in iOS applications. I want to use this class to connect my app with my Strava account. I have the following code: class AuthController { private var authSession: ASWebAuthenticationSession? func authenticate() { let string = self.createWebAuthUrl() guard let url = URL(string: string) else { return } self.authSession = ASWebAuthenticationSession(url: url, callbackURLScheme: "MaccaStravaWebAuth://