Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

okta/samples-aspnetcore

Repository files navigation

ASP.NET Core Sample Applications for Okta

⚠️ Archived Repository Notice

This repository is no longer maintained and has been archived by Okta.
No further updates, fixes, or support will be provided.
For current solutions and actively maintained projects, please visit https://github.com/okta.

This repository contains several sample applications that show you how to integrate various Okta use-cases into your ASP.NET Core applications.

Please find the sample that fits your use-case from the table below.

ASP.NET Core 3.x Samples

Sample Description Use-Case
Okta-Hosted Login An application server that uses the hosted login page on your Okta org, then creates a cookie session for the user in the ASP.NET Core application. Traditional web applications with server-side rendered pages.
Resource Server This is a sample API resource server that shows you how to authenticate requests with access tokens that have been issued by Okta. Single-Page applications.
Self-Hosted Login An application server that uses a self-hosted login page on your ASP.NET Core application. Traditional web applications with server-side rendered pages.
Social Login An application server that uses a self-hosted login page with multiple login options on your ASP.NET Core application. Traditional web applications with server-side rendered pages.

ASP.NET Core 6.x Samples

Sample Description Use-Case
Resource Server This is a sample API resource server that shows you how to authenticate requests with access tokens that have been issued by Okta. Single-Page applications.
Self-Hosted Login An application server that uses a self-hosted login page on your ASP.NET Core application. Traditional web applications with server-side rendered pages.

ASP.NET Core 7.x Samples

Sample Description Use-Case
Okta-Hosted Login An application server that uses the hosted login page on your Okta org, then creates a cookie session for the user in the ASP.NET Core application. Traditional web applications with server-side rendered pages.
Self-Hosted Login An application server that uses a self-hosted login page on your ASP.NET Core application. Traditional web applications with server-side rendered pages.

Contributing

We're happy to accept contributions and PRs! Please see the contribution guide to understand how to structure a contribution.