The Kinde Starter Kit for ASP.NET Core based APIs. This project contains examples of controller-based and minimal APIs secured with a bearer access token.
To get started set up an account on Kinde. You should create a front-end/mobile application in Kinde with at least one associated API.
Clone this repo.
Modify appsettings.json
, replace <your-domain>
with your Kinde domain and <your-audience>
with the audience associated with your API in Kinde.
If you would like to obtain acccess tokens via the Swagger UI for development you will be redirected to Kinde to authenticate. After you have logged in or registered you will be redirected back to your local Swagger UI.
You need to allow the callback of Swagger UI in Kinde, on the Settings -> Applications -> Frontend app
page add https://localhost:7179/swagger/oauth2-redirect.html
to Allowed callback URLs
.
Important! This is required to successfully log in to your app.
Modify appsettings.Development.json
and replace <frontend-app-client-id>
with the client ID for your application in Kinde.
Please refer to Kinde’s contributing guidelines.
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.