Coder Social home page Coder Social logo

kinde-dotnet-generator's Introduction

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://kinde.com/api/kinde-mgmt-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.7,sourceFolder=

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

openapi-generator-cli generate -i https://kinde.com/api/kinde-mgmt-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.

kinde-dotnet-generator's People

Contributors

coel avatar quoc-tran-sgt avatar oliwolff1 avatar muhammadatif-devsinc avatar trunges21 avatar

Stargazers

Keif Gwinn avatar viv avatar  avatar  avatar Evgeny avatar

Watchers

Evgeny avatar  avatar Daniel Rivers avatar Dave avatar Chris Pearce avatar Keif Gwinn avatar

Forkers

trunges21

kinde-dotnet-generator's Issues

Feature request: Merge generator with SDK repository

Prerequisites

What is the problem you’re trying to solve?

There is extra overhead with maintaining and updating two repositories and things become out of sync.

What solution would you like to see?

Combine the repositories like we did with the TypeScript SDK.

Additional information

No response

Documentation issue: Update README to Kinde's OSS Template

Prerequisites

How can we improve the docs or what is missing?

Update README to Kinde's OSS template for generator - https://github.com/kinde-oss/kinde-oss-repo-template/blob/main/README_template_generator.md

Provide extra context, such as what you were trying to do and your requirements

N/A

If the docs page already exists, please provide a link

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.