Demo application
Configure your consumer key and secret
If not configured, the table row is red
Edit project file
EditOAuthSwiftDemo/Service.plist to fill consumer key and secret for a specific service
⚠️ by doing this you have local modification into the git repository
Or edit hidden document file
After demo launch a copy of OAuthSwiftDemo/Service.plist is in ~Documents/.oauth/
- For OSX demo, your user Document directory
- For iOS demo, into a iOS simulator directory, see application logs
Add a new service in demo app
Edit OAuthSwiftDemo/Services.plist
Add your service using xcode or text editor
<key>ServiceName</key>
<dict>
<key>consumerKey</key>
<string></string>
<key>consumerSecret</key>
<string></string>
</dict>
Edit OAuthSwiftDemo/ViewController.swift
in doAuthService switch service add a case for your service
case "ServiceName":
doOAuthServiceName(parameters)
Then create your doOAuthServiceName function after the last one. Take inspiration from other service.