Simple app consuming an aspnet core web api with jwt authentication
Works with this project: https://github.com/rafaeladolfo/aspnet-core-jwt-auth
- Swift 4.0
- Cocoapods
- Alamofire
- Swiftyjson
Folders:
- Extensions: useful extensions for the app.
- Utils: currently holding our constants class.
- Services: or business objects(bo's), here we hold the logic for the app.
- ViewControllers: the app view controllers.
- Storyboards: the storyboards.
Add the following key to info.plist to allow http
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>yourdomain.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
</dict>