This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws pinpoint update-endpoint \ | |
| --application-id "a440cd17fe2b44a8b598f7xxxxxxxxxx" \ | |
| --endpoint-id "F2115F34-F064-4AB6-8621-XXXXXXXXXXXX" \ | |
| --endpoint-request file://endpointrequest.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- START OF FACEBOOK PLIST ENTRIES HERE --> | |
| <key>FacebookAppID</key> | |
| <string>1234567891234567</string> | |
| <key>FacebookDisplayName</key> | |
| <string>Auth Demo</string> | |
| <key>LSApplicationQueriesSchemes</key> | |
| <array> | |
| <string>fbapi</string> | |
| <string>fb-messenger-share-api</string> | |
| <string>fbauth2</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import AWSAuthCore | |
| import AWSAuthUI | |
| class ViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| showSignIn() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import AWSMobileClient //#1 | |
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Uncomment the next line to define a global platform for your project | |
| # platform :ios, '11.0' | |
| target '<YOURPOJECTNAMEHERE>' do | |
| # Comment the next line if you're not using Swift and don't want to use dynamic frameworks | |
| use_frameworks! | |
| # Pods for BasicandFBAuth | |
| pod 'AWSMobileClient' | |
| pod 'AWSFacebookSignIn' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Uncomment the next line to define a global platform for your project | |
| # platform :ios, '11.0' | |
| target 'GoogleAuth' do | |
| # Comment the next line if you're not using Swift and don't want to use dynamic frameworks | |
| use_frameworks! | |
| # Pods for BasicandGoogleSignIn | |
| pod 'AWSMobileClient' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <key>CFBundleURLTypes</key> | |
| <array> | |
| <dict> | |
| <key>CFBundleURLSchemes</key> | |
| <array> | |
| <string>com.googleusercontent.apps.###########-xxxxxxxxxxxxxxxxxxxxxxxxxxxx</string> | |
| </array> | |
| </dict> | |
| </array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // AuthLWA | |
| // | |
| // Created by Hills, Dennis on 4/26/19. | |
| // Copyright © 2019 Hills, Dennis. All rights reserved. | |
| // | |
| // Requires LoginWithAmazonProxy.swift from here: https://gist.github.com/mobilequickie/56916503a41ebb2374fea241ede26eab | |
| // Gist: https://gist.github.com/mobilequickie/346caccc2a07f18e2bea4fdf6fe8fd3f | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // LoginWithAmazonProxy.swift | |
| // | |
| // Created by Hills, Dennis on 4/26/19. | |
| // Copyright © 2019 Hills, Dennis. All rights reserved. | |
| // | |
| // Original credit to SUPERDASHENG at https://superdasheng.wordpress.com/author/superdasheng/ | |
| // Added logout, getAccessToken, and getUserProfile | |
| // https://gist.github.com/mobilequickie/56916503a41ebb2374fea241ede26eab | |
| import Foundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { | |
| return AIMobileLib.handleOpen(url, sourceApplication: UIApplication.OpenURLOptionsKey.sourceApplication.rawValue) | |
| } |