You'll need to have Carthage installed in order to pull the AppAuth dependency.
So first run carthage bootstrap to build AppAuth framework then open the
Example.xcodeproj file.
The example doesn't work out of the box, you need to configure it with your own client ID.
- Issuer
- Client ID
- Redirect URI
How to get this information varies by IdP, but we have instructions for some OpenID Certified providers.
- Update
kIssuerwith the IdP's issuer. - Update
kClientIDwith your new client id. - Update
kRedirectURIredirect URI
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.
Now your example should be ready to run.