Skip to content

kinde-oss/kinde-dotnet-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kinde .NET generator

The generator for the Kinde .NET SDK.

PRs Welcome Kinde Docs Kinde Community

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. It can also access the Kinde Management API using the client credentials grant.

Also, see the SDKs section in Kinde’s contributing guidelines.

Usage

Initial set up

  1. Clone the repository to your machine:

    git clone https://github.com/kinde-oss/kinde-dotnet-generator.git
  2. Go into the project:

    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:

openapi-generator-cli generate -i https://api-spec.kinde.com/kinde-combined-api-specs.yaml -g csharp -o Kinde.Sdk --package-name=Kinde.Api -c config.yaml --library=httpclient --additional-properties=targetFramework=net6.0,packageVersion=1.2.9,sourceFolder=

Note: The API specifications should always point to Kinde's hosted version: https://api-spec.kinde.com/kinde-combined-api-specs.yaml. This is set via the -i option in the OpenAPI Generator CLI, for example:

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:

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

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.

License

By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.

About

OpenAPI generator for Kinde .NET SDK

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published