Skip to content

Planthor/PlanthorIdentityServer

Repository files navigation

Planthor Identity Server README

Code Smells Security Rating Bugs Vulnerabilities Quality Gate Status Coverage

Getting Started

This section will provide you with all the necessary information to get the project up and running on your local machine for development and testing purposes.

Prerequisites

.NET 8.0 SDK An IDE (Visual Studio, JetBrains Rider or VS Code) Duende Identity Server v7

Installation

  • Clone the repository
git clone https://github.com/Planthor/PlanthorIdentityServer.git
  • Install Nuget packages
dotnet restore;
$env:ConnectionStrings__DefaultConnection = "Host=localhost:5432;Username=planthor-admin;Password=Planthor@123;Database=PLANTHOR_IDENTITY";
dotnet build;
  • Seed data for the project
dotnet run /seed
  • Start the project
dotnet run

For run with docker-compose

  • Generate self-certificates from ./infrastructure/certificates.
  • Use Docker compose file in ./infrastructure folder.

Facebook authentication local

  • Contact owner or administration for Planthor Sandbox Facebook apps id and secret.
  • Apply bash command to store app id and secret in secret Environment Variables.
  • In the project folder, use these commands:
dotnet user-secrets init
dotnet user-secrets set "Authentication:Facebook:AppId" "<app-id>"
dotnet user-secrets set "Authentication:Facebook:AppSecret" "<app-secret>"
  • Start the identity application as usual.

Usage

This project serves as an Identity Provider (IdP) using Duende Identity Server v7. It can be utilized to authenticate and authorize users in Planthor applications, APIs, etc.

Troubleshooting

If you encounter any issues while installing or running the project, please check the Troubleshooting guide. If the problem persists, feel free to create an issue.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Fork the Project

  • Create your Feature Branch (git checkout -b feature/AmazingFeature)
  • Commit your Changes (git commit -m 'Add some AmazingFeature')
  • Push to the Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Pham Le Trung - trunglepham1202@gmail.com

Project Link - https://github.com/Planthor

Please feel free to contact us if you need any further information or have any questions or issues. Happy coding!

About

Repository Planthor IDP to enable SSO to Planthor client applications (Web/Mobile)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •