An open API service indexing awesome lists of open source software.

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

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:
![Android](casdoor-android-example.gif)