ComponentSpace.OpenID.Examples 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.Examples --version 3.5.0                
NuGet\Install-Package ComponentSpace.OpenID.Examples -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.Examples" 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.Examples --version 3.5.0                
#r "nuget: ComponentSpace.OpenID.Examples, 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.Examples as a Cake Addin
#addin nuget:?package=ComponentSpace.OpenID.Examples&version=3.5.0

// Install ComponentSpace.OpenID.Examples as a Cake Tool
#tool nuget:?package=ComponentSpace.OpenID.Examples&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);
}
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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 127 7/23/2024
3.5.0 246 2/29/2024
3.4.0 317 11/8/2023
3.3.0 235 9/7/2023
3.2.0 196 5/19/2023
3.1.0 223 3/15/2023
3.0.0 298 1/11/2023
2.0.0 446 8/25/2022
1.0.0 448 7/30/2022