https://github.com/casdoor/casdoor-android-example
An Android app example for Casdoor based on Casdoor Android SDK: https://github.com/casdoor/casdoor-android-sdk
https://github.com/casdoor/casdoor-android-example
android app casdoor example sdk
Last synced: 7 months ago
JSON representation
An Android app example for Casdoor based on Casdoor Android SDK: https://github.com/casdoor/casdoor-android-sdk
- Host: GitHub
- URL: https://github.com/casdoor/casdoor-android-example
- Owner: casdoor
- License: apache-2.0
- Created: 2022-08-11T02:50:40.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T06:00:44.000Z (about 3 years ago)
- Last Synced: 2025-01-13T22:16:06.302Z (9 months ago)
- Topics: android, app, casdoor, example, sdk
- Language: Kotlin
- Homepage: https://github.com/casdoor/casdoor
- Size: 774 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
📦⚡️Casdoor android example
An example of casdoor-android-sdk
## The example uses the following casdoor server:
The server: https://door.casdoor.com/## Quick Start
- download the code
```bash
git clone git@github.com:casdoor/casdoor-android-example.git
```## Configure
Initialization requires 6 parameters, which are all str type:
| Name (in order) | Must | Description |
| ---- | ---- |---- |
| clientId | Yes | Application.client_id |
| endpoint | Yes | Casdoor Server Url, such as `door.casdoor.com` |
| organizationName | Yes | Organization name |
| appName | Yes | Application name |
| redirectUri | Yes | The path of the callback URL for your Casdoor application, will be `casdoor://callback` if not provided |```
val casdoorConfig = CasdoorConfig(
endpoint = "https://door.casdoor.com",
clientID = "014ae4bd048734ca2dea",
organizationName = "casbin",
redirectUri = "casdoor://callback",
appName = "app-casnode"
)
```
## After running, you will see the following interfaces:
