ComponentSpace.OpenID 3.5.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
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.6.0 259 7/23/2024
3.5.0 413 2/29/2024
3.4.0 344 11/8/2023
3.3.0 239 9/7/2023
3.2.0 269 5/19/2023
3.1.0 277 3/15/2023
3.0.0 406 1/11/2023
2.0.0 464 8/25/2022
1.0.0 403 7/30/2022