I hereby claim:
- I am dmennis on github.
- I am dmennis (https://keybase.io/dmennis) on keybase.
- I have a public key ASBrIJGI2iMPmyP7t29Dn8csXeYGFYrBjQcg8sXAMY--tQo
To claim this, I am signing this object:
| func doSomething() { | |
| connection { connection in | |
| self.log(message: "Connection: \(connection.description)") | |
| guard let smartCard = connection.smartCardInterface else { | |
| self.log(error: "Failed to get smart card interface.") | |
| return | |
| } |
| // | |
| // ViewController.swift | |
| // OATH-NFC | |
| // | |
| // Created by Dennis Hills on 6/5/20. | |
| // Copyright © 2020 Dennis Hills. All rights reserved. | |
| // | |
| // Description: This is sample app demonstrating NFC interaction with the OATH module of a YubiKey using the Yubico iOS SDK | |
| // The app establishes an open NFC connection with the YubiKey, reads the credentials from the OATH module and retrieves a TOTP code based on the first OATH credential retrieved. | |
| // |
I hereby claim:
To claim this, I am signing this object:
| // (POST) Create NEW User (createUser) - Appears to be indopotent | |
| // Doc: https://devapi.singularkey.com/docs/index.html?http#createuser | |
| curl -X POST \ | |
| https://devapi.singularkey.com/v1/users/ \ | |
| -H 'Accept: application/json' \ | |
| -H 'Accept-Encoding: gzip, deflate' \ | |
| -H 'Cache-Control: no-cache' \ | |
| -H 'Connection: keep-alive' \ | |
| -H 'Content-Length: 58' \ | |
| -H 'Content-Type: application/json' \ |
| // WITH multi-auth | |
| func initializeAppSync_API_Key() { | |
| do { | |
| // Reference the API_KEY auth mode setting in awsconfiguration.json | |
| let serviceConfigAPI_Key = try AWSAppSyncServiceConfig(forKey: "recipedemo_API_KEY") | |
| // useClientDatabasePrefix: true is telling the AppSync client to look for 'ClientDatabasePrefix' in awsconfiguration.json | |
| // why the cacheConfig? AppSync client uses a unique cache database for each auth type | |
| let cacheConfig = try AWSAppSyncCacheConfiguration(useClientDatabasePrefix: true, | |
| appSyncServiceConfig: serviceConfigAPI_Key) |
| // Initialize Identity Provider | |
| let credentialsProvider = AWSCognitoCredentialsProvider( | |
| regionType: .USEast1, | |
| identityPoolId: "<YOUR-COGNITO-IDENTITY-POOL-ID-HERE>") | |
| let configuration = AWSServiceConfiguration( | |
| region: .USEast1, | |
| credentialsProvider: credentialsProvider) | |
| AWSServiceManager.default().defaultServiceConfiguration = configuration |
| 'use strict'; | |
| /** | |
| * This code sample demonstrates an implementation of the Amazon Lex Code Hook Interface | |
| * to echo back what the user says | |
| * Written by: Dennis Hills | |
| * Date: Jan 9, 2019 | |
| * Amazon Lex Bot setup requires only a single slot | |
| * Usage: "repeat after me I am the boss" or "repeat after me the quick brown fox jumped over the lazy dog" | |
| */ |
| // | |
| // ViewController.swift | |
| // AuthLWA | |
| // | |
| // Created by Hills, Dennis on 12/7/18. | |
| // Copyright © 2018 Hills, Dennis. All rights reserved. | |
| // | |
| // Requires LoginWithAmazonProxy via Gist here: https://gist.github.com/mobilequickie/56916503a41ebb2374fea241ede26eab | |
| // This gist: https://gist.github.com/mobilequickie/47a238e073043a271425f7ffe9d56d5e | |
| // |
| import UIKit | |
| import AWSMobileClient | |
| class ViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| initializeAWSMobileClient() // Initialize the AWSMobileClient | |
| } |
| import UIKit | |
| import AWSMobileClient | |
| class ViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| initializeAWSMobileClient() // Initialize the AWSMobileClient | |
| } |