ComponentSpace.OpenID 3.5.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package ComponentSpace.OpenID --version 3.5.0
NuGet\Install-Package ComponentSpace.OpenID -Version 3.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ComponentSpace.OpenID" Version="3.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ComponentSpace.OpenID --version 3.5.0
#r "nuget: ComponentSpace.OpenID, 3.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ComponentSpace.OpenID as a Cake Addin
#addin nuget:?package=ComponentSpace.OpenID&version=3.5.0

// Install ComponentSpace.OpenID as a Cake Tool
#tool nuget:?package=ComponentSpace.OpenID&version=3.5.0

OpenID Connect for ASP.NET Core

ComponentSpace.OpenID enables ASP.NET Core applications to participate in OpenID Connect (OIDC) authentication as the OpenID provider and authorization server.

It supports Blazor, ASP.NET Core and any other OIDC compliant client.

Supports:

  • OIDC authentication as the OpenID provider
  • OIDC Discovery
  • Authentication and Logout
  • JWT Access Tokens
  • Refresh Tokens

Supported OpenID flows include:

  • Authorization Code Flow
  • Authorization Code Flow with Proof Key for Code Exchange (PKCE)
  • Implicit Flow
  • Hybrid Flow

Supported grant types include:

  • authorization_code
  • client_credentials
  • password
  • refresh_token

Supported response types include:

  • code
  • id_token
  • id_token token
  • code id_token
  • code token
  • code id_token token

Client authentication methods include:

  • client_secret_basic
  • client_secret_post
  • client_secret_jwt
  • private_key_jwt
  • none

Licensing

ComponentSpace.OpenID is a fully functional evaluation version of a commercial product. The trial period is 30 days.

A product license is available for purchase.

Examples

Example ASP.NET Core projects are available that demonstrate the simple to use OpenID API and accompanying OpenID configuration.

Processing an OpenID Discovery Metadata Request

[Route(".well-known/openid-configuration")]
[ResponseCache(Duration = 600, Location = ResponseCacheLocation.Any)]
public async Task GetMetadataAsync()
{
    // Return the OpenID provider's metadata.
    return await _openIDProvider.GetMetadataAsync();
}

Processing an OpenID Key Request

[Route("openid/keys")]
[ResponseCache(Duration = 600, Location = ResponseCacheLocation.Any)]
public async Task GetKeysAsync()
{
    // Return the OpenID provider's keys.
    return await _openIDProvider.GetKeysAsync();
}

Processing an OpenID Connect Authentication Request

[Route("openid/authorize")]
public async Task AuthorizeAsync()
{
    // Receive and process the OpenID Connect authentication request.
    var authenticationRequest = await _openIDProvider.ReceiveAuthnRequestAsync();
}

Sending an OpenID Connect Authentication Response

[Route("openid/AuthenticationCompletion")]
public async Task AuthenticationCompletionAsync()
{
    // Create and send the OpenID Connect authentication response.
    return await _openIDProvider.SendAuthnResponseAsync(name, claims, accessToken);
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.5.0 167 2/29/2024
3.4.0 301 11/8/2023
3.3.0 199 9/7/2023
3.2.0 240 5/19/2023
3.1.0 253 3/15/2023
3.0.0 370 1/11/2023
2.0.0 421 8/25/2022
1.0.0 371 7/30/2022