Copyright (C) Schweizerische Bundesbahnen SBB, 2016-2021
Using the SwissPassClient SDK your app can take advantage of SwissPass services for mobile apps, such as SwissPass Login and SwissPass Mobile.
SwissPass Login for mobile apps is based on OAuth 2.0, which is the industry-standard protocol for authorization on mobile devices.
As such, the SwissPassClient SDK implements the security requirements and other recommendations for mobile applications as described in RFC 8252 "OAuth 2.0 for Native Apps". For example, this includes PKCE according to RFC 7636 "Proof Key for Code Exchange" which is an extension to the Authorization Code flow to prevent several attacks and to be able to securely perform the OAuth exchange from public clients.
In addition, please note the following:
SwissPass Mobile enables travelers to display public transport travelcards conveniently on a digital device.
SwissPassMobileViewControlleror embedded in a custom screen of your app using the
The SwissPassClient SDK is written in Swift 5 and compiled using the option Build Libraries for Distribution with deployment target is iOS 11. It is distributed as XCFramework and supports Bitcode.
requestAuthentication()be sure to specify the key
NSFaceIDUsageDescriptionin your info.plist - for more details see https://developer.apple.com/documentation/localauthentication/lacontext
The SDK can be integrated into your build process as an XCFramework using the Swift Package Manager. To do so, just add the package by using the following url
The SDK can be integrated into your build process as a framework using CocoaPods.
platform :ios, '11.0' inhibit_all_warnings! source 'https://github.com/SchweizerischeBundesbahnen/SBBCocoaPods-Ext.git' target 'MyAppUsingSwissPassClient' do pod 'SwissPassClient', '~> 3.0.0' end
Further documentation is available on the NOVA UserGroup website.
General inquiries, suggestions and feedback can be made via the NOVA UserGroup website or the SwissPass Alliance.
A demo app is available in source form on https://github.com/SchweizerischeBundesbahnen/SwissPassSDK-iOS.
|Last commit: 5 days ago|
SwissPassLoginClientare now public.