This sample iOS application obtains an access token from Cloudentity Authorization Platform using Authorization Code grant and PKCE.
A more detailed explanation is available at App Dev Tutorials
- Cloudentity Authorization Platform account
- Workspace and Client application prepared for PKCE
- Xcode 13+
- iOS 15+
- Clone the repository and open the
simple-pkce
folder in Xcode. - Add your client id as the value for the ClientID key in Info.plist
- Add your workspace token URL as the value for the TokenEndpoint key in Info.plist
- Add your workspace authorization URL as the value for the AuthorizeEndpoint key in Info.plist
- Add your URL scheme in Info.plist Register Your URL Scheme Note: Can be left as-is
oauth://com.example.simple-pkce
and then addoauth://com.example.simple-pkce
as the redirect uri in your client application. - Run the application in Xcode by selecting Product > Run
Relevant Links