You need to init requires 5 parameters, which are all string type:
Name | Description | File |
---|---|---|
endpoint | Your Casdoor server host/domain | ViewController.swift |
clientID | The Client ID of your Casdoor application | ViewController.swift |
organizationName | The organization name of your Casdoor application | ViewController.swift |
redirectUri | The path of the callback URL for your Casdoor application, will be casdoor://callback if not provided |
ViewController.swift |
appName | The name of your Casdoor application | ViewController.swift |
If you don't set these parameters, this project will use the Casdoor online demo as the defult Casdoor server and use the Casnode as the default Casdoor application.
- download the code
git clone https://github.com/casdoor/casdoor-ios-example.git
- open the CasdoorDemo.xcodeproj if you change redirectUri,you should change the url schemes in the target CasdoorDemo