Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pingidentity/ios-napps-sample-application
Sample application for Native Application SSO using iOS9's new SFSafariViewController
https://github.com/pingidentity/ios-napps-sample-application
Last synced: about 2 months ago
JSON representation
Sample application for Native Application SSO using iOS9's new SFSafariViewController
- Host: GitHub
- URL: https://github.com/pingidentity/ios-napps-sample-application
- Owner: pingidentity
- License: apache-2.0
- Created: 2015-08-27T03:45:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T18:53:09.000Z (over 7 years ago)
- Last Synced: 2023-08-09T12:33:18.433Z (over 1 year ago)
- Language: Swift
- Size: 95.7 KB
- Stars: 11
- Watchers: 9
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iOS9 Native Application SSO Sample Application
**ios-napps-sample-application** is a basic sample application to demonstrate using the new SFSafariViewController in iOS9 to facilitate native application single sign-on.
This sample application will authenticate the user via OpenID Connect 1.0 and present the user's subject and tokens on the screen. Options to refresh the OAuth 2.0 access token and to refresh the authentication session are also demonstrated.
Refer to the **Mobile Application SSO Developers Guide** at https://developer.pingidentity.com/en/resources/napps-native-app-sso for more detailed information.
## Installation
This sample application has been built using PingFederate 8.0.1 and the OAuth Playground 3.2. Follow the documentation for PingFederate and the OAuth Playground to quickly stand up an OpenID Connect Provider / OAuth Authorization Server.
Modify the OAuth client "ac_client" in the PingFederate configuration (OAuth Settings -> Client Management -> ac_client -> Redirect URIs) to include the application callback URI (com.pingidentity.developer.napps://oidc_callback) defined in the "ProtocolHelper.swift" file.
Modify the "ProtocolHelper.swift" file with the URL of your PingFederate server and the name of your issuer.
Note: Due to the Application Transport Security (ATS) feature of iOS9, your PingFederate server must have a valid SSL certificate.
## Disclaimer
*This software is open sourced by Ping Identity but not supported commercially as such. Any questions/issues/comments should be directed to the "Developer Q&A" group in the Ping Identity Support Communities https://community.pingidentity.com/collaborate.*