Commit 0bf2e9a
committed
Add initial Casdoor adapter implementation
This commit introduces the Casdoor adapter with the following key components:
- **Configuration**: Added `AdapterConfig` struct to manage environment variables and configuration settings.
- **Crypto Functions**: Implemented RSA encryption and token generation functions in `crypto.rs`.
- **Handlers**: Created HTTP handlers for OAuth sign-in, callback processing, and user information retrieval in `handlers.rs`.
- **State Management**: Established `AppState` to manage application state, including pending sessions and user tokens.
- **Environment Setup**: Added `.env.example` for environment variable configuration and `Cargo.toml` for dependency management.
- **Main Entry Point**: Implemented the main function to initialize the application and set up routing.
This foundational setup enables integration with Casdoor for authentication and user management, laying the groundwork for further development.
Release Notes:
- Initial implementation of Casdoor adapter with OAuth support and user management features.1 parent 5611cc2 commit 0bf2e9a
10 files changed
Lines changed: 2825 additions & 3 deletions
File tree
- casdoor
- src
- crates
- collab_ui/src
- collab/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments