NXLAuth for iOS Example Project
The examples need to be configured with an OpenID Connect issuer (or Authorization and Token endpoints manually), and the OAuth client information like the Client ID and Redirect URI.
Setup & Open the Project
- In your project folder, run the following command to install the AppAuth pod.
pod install
- Open the
NXLAuthExample.xcworkspace
workspace.
open NXLAuthExample.xcworkspace
This workspace is configured to include AppAuth via CocoaPods and NXLAuth Framework.
Configuration
The example doesn't work out of the box, you need to configure it with your own client ID, Issuer, Redirect URI
Information You'll Need
- Issuer
- Client ID
- Redirect URI
Configure the Example
configuration.plist
In the file - Update
Issuer
with the IdP's issuer. - Update
ClientID
with your new client id. - Update
RedirectURI
redirect URI
Info.plist
In the file Fully expand "URL types" (a.k.a. CFBundleURLTypes
) and replace
com.example.app
with the scheme of your redirect URI.
The scheme is everything before the colon (:
). For example, if the redirect
URI is com.example.app:/oauth2redirect/example-provider
, then the scheme
would be com.example.app
.
Running the Example
Now your example should be ready to run.