https://github.com/kinde-oss/kinde-dotnet-generator
OpenAPI generator for Kinde .NET SDK
https://github.com/kinde-oss/kinde-dotnet-generator
openapi-generator
Last synced: 11 months ago
JSON representation
OpenAPI generator for Kinde .NET SDK
- Host: GitHub
- URL: https://github.com/kinde-oss/kinde-dotnet-generator
- Owner: kinde-oss
- License: mit
- Created: 2023-05-04T07:51:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-25T01:43:50.000Z (12 months ago)
- Last Synced: 2025-07-10T11:05:33.214Z (11 months ago)
- Topics: openapi-generator
- Language: C#
- Homepage:
- Size: 89.8 KB
- Stars: 5
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kinde .NET generator
The generator for the [Kinde .NET SDK](https://github.com/kinde-oss/kinde-dotnet-sdk).
[](https://makeapullrequest.com) [](https://kinde.com/docs/developer-tools) [](https://thekindecommunity.slack.com)
## Overview
This generator creates an SDK in .NET that can authenticate to Kinde using the Authorization Code grant or the Authorization Code with PKCE grant via the [OAuth 2.0 protocol](https://oauth.net/2/). It can also access the [Kinde Management API](https://kinde.com/api/docs/#kinde-management-api) using the client credentials grant.
Also, see the SDKs section in Kinde’s [contributing guidelines](https://github.com/kinde-oss/.github/blob/main/.github/CONTRIBUTING.md).
## Usage
### Initial set up
1. Clone the repository to your machine:
```bash
git clone https://github.com/kinde-oss/kinde-dotnet-generator.git
```
2. Go into the project:
```bash
cd kinde-dotnet-generator
```
3. Install the OpenAPI Generator tool:
https://openapi-generator.tech/docs/installation
### SDK generation
Run the following command to generate the SDK:
```bash
openapi-generator-cli generate -i https://api-spec.kinde.com/kinde-management-api-spec.yaml -g csharp -o Kinde.Sdk --package-name=Kinde.Api -c config.yaml --library=httpclient --additional-properties=targetFramework=netstandard2.1,packageVersion=1.3.1,sourceFolder=
```
**Note:** The API specifications should always point to Kinde's hosted version: https://api-spec.kinde.com/kinde-management-api-spec.yaml. This is set via the ` -i` option in the [OpenAPI Generator CLI](https://openapi-generator.tech/docs/usage/), for example:
```bash
openapi-generator-cli generate -i https://api-spec.kinde.com/kinde-combined-api-specs.yaml
```
The SDK gets outputted to: `Kinde.Sdk`, which you can enter via:
```bash
cd Kinde.Sdk
```
Folder `Kinde.Sdk` contains our final SDK after build.
In order to copy files generated from Kinde.Sdk folder to the development repository, eg: `../kinde-dotnet-sdk` , please run
```
cp -r Kinde.Sdk/Kinde.Api ../kinde-dotnet-sdk/
```
## SDK documentation
[.NET SDK](https://kinde.com/docs/developer-tools/dotnet-sdk)
## Development
The instructions provided in the "Usage → Initial set up" section above are sufficient to get you started.
## Contributing
Please refer to Kinde’s [contributing guidelines](https://github.com/kinde-oss/.github/blob/489e2ca9c3307c2b2e098a885e22f2239116394a/CONTRIBUTING.md).
## License
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.