Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casdoor/casdoor-ios-example
iOS app example to integrate with Casdoor via casdoor-ios-sdk
https://github.com/casdoor/casdoor-ios-example
app auth authn casdoor iam ios oauth oidc sso swift
Last synced: 5 days ago
JSON representation
iOS app example to integrate with Casdoor via casdoor-ios-sdk
- Host: GitHub
- URL: https://github.com/casdoor/casdoor-ios-example
- Owner: casdoor
- License: apache-2.0
- Created: 2022-06-22T15:00:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-16T15:38:27.000Z (over 2 years ago)
- Last Synced: 2024-11-14T06:28:19.064Z (2 months ago)
- Topics: app, auth, authn, casdoor, iam, ios, oauth, oidc, sso, swift
- Language: Swift
- Homepage: https://github.com/casdoor/casdoor-ios-sdk
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# casdoor-ios-example
## Init example
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](https://door.casdoor.com) as the defult Casdoor server and use the [Casnode](https://door.casdoor.com/applications/app-casnode) as the default Casdoor application.
## How to run it
### Xcode
- download the code```bash
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