This repository demonstrates how to integrate Keycloak with DevExpress XAF to achieve Single Sign-On (SSO) functionality. It includes examples for both Blazor and Web API Server applications.
- Integration of Keycloak for secure SSO authentication.
- DevExpress XAF implementation with two modes:
- Blazor: For building modern, interactive web applications.
- Web API: For managing backend API services.
- Demonstrates seamless authentication and authorization mechanisms.
- C#
- .NET 8
- DevExpress XAF
- Keycloak
- Clone the repository:
git clone https://github.com/antonylu0826/KeycloakWithXAF.git
- Open the project in your preferred IDE (e.g., Visual Studio or Rider).
- Restore the NuGet packages:
dotnet restore
- Configure the Keycloak settings:
- Set up Keycloak with appropriate client credentials.
- Update the configuration files in the project to match your Keycloak setup (e.g., client ID, secret, and authentication endpoints).
- Build and run the project.
- Start the Blazor project.
- Open your browser and navigate to the application's URL.
- Log in using your Keycloak credentials to test the SSO functionality.
- Start the Web API project.
- Use tools like Postman or a custom client to test API endpoints.
- Ensure you include a valid authorization token in your requests.
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Description of your changes"
- Push your changes:
git push origin feature-name
- Open a pull request and provide details about your changes.
This project is licensed under the MIT License. See the LICENSE file for more information.
If you have any questions or issues, please open an issue in the GitHub Issues page.