Secure authentication with Okta and Kestrun
Status: Not authenticated
Provider: Okta OpenID Connect
Flow: Authorization Code + PKCE
Scopes: openid, profile, email, offline_access
Before running this demo, set these environment variables:
$env:OKTA_CLIENT_ID = 'your-okta-client-id'$env:OKTA_CLIENT_SECRET = 'your-okta-client-secret'$env:OKTA_AUTHORITY = 'https://your-domain.okta.com/oauth2/default'Or create a .env file in the project root with these values.
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