This application showcases using the Mobile Identity Connect (MIC) authorization-grant login flow from Kinvey's client libraries.
Mobile Identity Connect is a service that bridges mobile applications with existing enterprise identity and single sign-on solutions. MIC enables mobile applications to integrate with a variety of identity solutions using a single OAuth2-based interface. This allows enterprise application developers to avoid the complexity of integrating these protocols into mobile, while providing enterprise IT the means to ensure that access to resources is secured only to authenticated users, as well as maintaining full control over a mobile user's identity.
- iOS 8 or later
- Xcode 6 or later
- Kinvey SDK 1.35 or later
This Kinvey app needs an Enterprise plan. Contact Kinvey sales if you don't have one.
- Visit the User Section of the console.
- Click the Auth Source tab at the top of the page
- Set the
Type of Provider
to beCustom
- In the
Provider URL
, enter:https://authlinkdemo.herokuapp.com/authenticate
- In the
Redirect URI's:
enter:kinveyAuthDemo://
The above Auth Provider sample can be used with the username: test
and the password: test
.
- Clone the Repo, or download the zip file and extract it.
- Change the file
Constants.swift
with your Kinvey App Key, Kinvey App Secret and MIC Redirect URI - To be able to login using the Safari Mobile browser you have to change the URL Scheme in the
Info.plist
file. For example, if your MIC Redirect URI is something likekinveyAuthDemo://
you will have to replace the placeholder valuemyURLScheme
to bekinveyAuthDemo
- That's it! Have fun!
Take a look at our MIC Guide for more information.