Skip to content

scalekit-inc/dotnet-example-apps

Repository files navigation


Scalekit ASP.NET Example App

Scalekit helps you ship Enterprise Auth in days.

This ASP.NET Core Web API Sample App showcases the Scalekit Official .NET SDK implementation.

Prerequisites

Getting Started

  1. Sign up for a Scalekit account
  2. Get your env_url, client_id and client_secret from the Scalekit dashboard

Project Setup

  1. Clone the repository:
# Clone the repository along with ReactJS submodule
git clone --recursive https://github.com/scalekit-developers/dotnet-example-apps.git
cd dotnet-example-apps
  1. Install .NET dependencies:
# Install Scalekit.SDK package
dotnet add package Scalekit.SDK
dotnet add package DotNetEnv
dotnet restore
  1. Add ReactJS submodule for frontend elements:
# Build the ReactJS submodule
cd web
npm run build

# Copy all files from React build folder to ASP.NET Core WebAPI wwwroot folder
cp -r ./path-to-react-app/build/* ./path-to-aspnetcore-app/wwwroot/
  1. Set up environment variables:
# From the root directory
cp .env.example .env

Update .env with your Scalekit credentials:

SCALEKIT_ENV_URL=your_env_url
SCALEKIT_CLIENT_ID=your_client_id
SCALEKIT_CLIENT_SECRET=your_client_secret
  1. Run the application in development mode:
# From the root directory
dotnet run

Open http://localhost:5125 to view it in the browser.

Additional Resources

See the Scalekit API docs for more information about the API and authentication.

About

.NET example applications - ASP.NET Core SAML and OIDC integration samples

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages