ComponentSpace.OpenID
3.2.0
Prefix Reserved
See the version list below for details.
dotnet add package ComponentSpace.OpenID --version 3.2.0
NuGet\Install-Package ComponentSpace.OpenID -Version 3.2.0
<PackageReference Include="ComponentSpace.OpenID" Version="3.2.0" />
paket add ComponentSpace.OpenID --version 3.2.0
#r "nuget: ComponentSpace.OpenID, 3.2.0"
// Install ComponentSpace.OpenID as a Cake Addin #addin nuget:?package=ComponentSpace.OpenID&version=3.2.0 // Install ComponentSpace.OpenID as a Cake Tool #tool nuget:?package=ComponentSpace.OpenID&version=3.2.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);
}
Links
Product | Versions 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 is compatible. 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 was computed. 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. |
-
net6.0
- Microsoft.Extensions.Caching.Memory (>= 6.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.30.1)
- System.IdentityModel.Tokens.Jwt (>= 6.30.1)
-
net7.0
- Microsoft.Extensions.Caching.Memory (>= 7.0.0)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 7.0.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.30.1)
- System.IdentityModel.Tokens.Jwt (>= 6.30.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.