Okta OIDC Demo

Secure authentication with Okta and Kestrun

🚀 Quick Start

Status: Not authenticated

Provider: Okta OpenID Connect

Flow: Authorization Code + PKCE

Scopes: openid, profile, email, offline_access

⚙️ Environment Setup

Before running this demo, set these environment variables:

  1. $env:OKTA_CLIENT_ID = 'your-okta-client-id'
  2. $env:OKTA_CLIENT_SECRET = 'your-okta-client-secret'
  3. $env:OKTA_AUTHORITY = 'https://your-domain.okta.com/oauth2/default'

Or create a .env file in the project root with these values.

✨ Features

📚 How It Works

1. Click "Login with Okta" to start the authentication flow

2. You'll be redirected to Okta's login page

3. Enter your Okta credentials

4. Okta validates your credentials and redirects back

5. Kestrun exchanges the authorization code for tokens

6. Access protected routes with your authenticated session

🔗 Useful Links