All Projects → mikebridge → IdentityServer4SignalR

mikebridge / IdentityServer4SignalR

Licence: other
Demo of Authentication SignalR with JWT Tokens via OpenID Connect in DotNet Core

Programming Languages

C#
18002 projects
typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to IdentityServer4SignalR

Identityserver4.samples
Samples for IdentityServer4
Stars: ✭ 1,002 (+2762.86%)
Mutual labels:  openid-connect, identityserver4
React Oidc Client Js
OpenID Connect (OIDC) client with React and typescript
Stars: ✭ 122 (+248.57%)
Mutual labels:  openid-connect, identityserver4
Identityserver4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
Stars: ✭ 8,428 (+23980%)
Mutual labels:  openid-connect, identityserver4
Jpproject.identityserver4.sso
🔒 ASP.NET Core 3.1 Open Source SSO. Built within IdentityServer4 🔑
Stars: ✭ 298 (+751.43%)
Mutual labels:  openid-connect, identityserver4
Aspnetcoreangularsignalrsecurity
Security with ASP.NET Core, SignalR and Angular
Stars: ✭ 171 (+388.57%)
Mutual labels:  signalr, identityserver4
Jpproject.identityserver4.adminui
🔧 ASP.NET Core 3 & Angular 8 Administration Panel for 💞IdentityServer4 and ASP.NET Core Identity
Stars: ✭ 717 (+1948.57%)
Mutual labels:  openid-connect, identityserver4
Reactjs Ts Identityserver
Demo app for using Identity Server with React.js SPA, .Net Core 3.0 and TypeScript
Stars: ✭ 120 (+242.86%)
Mutual labels:  openid-connect, identityserver4
Identityserver4.samples
Samples for IdentityServer4,use .net core 2.0
Stars: ✭ 561 (+1502.86%)
Mutual labels:  openid-connect, identityserver4
Oidc.example
OIDC (OpenID Connect) Example for http://openid.net/connect/
Stars: ✭ 190 (+442.86%)
Mutual labels:  openid-connect, identityserver4
Theidserver
OpenID/Connect server based on IdentityServer4
Stars: ✭ 170 (+385.71%)
Mutual labels:  openid-connect, identityserver4
Angularaspnetcoreoauth
Sample project demonstrating user authentication and identity with Angular, Asp.Net Core and IdentityServer4
Stars: ✭ 268 (+665.71%)
Mutual labels:  openid-connect, identityserver4
run-aspnet-identityserver4
Secure microservices with using standalone Identity Server 4 and backing with Ocelot API Gateway. Protect our ASP.NET Web MVC and API applications with using OAuth 2 and OpenID Connect in IdentityServer4. Securing your web application and API with tokens, working with claims, authentication and authorization middlewares and applying policies.
Stars: ✭ 159 (+354.29%)
Mutual labels:  openid-connect, identityserver4
Identitybase
IdentityBase is a Universal Identity Platform for web, mobile and IoT built on top of IdentityServer.
Stars: ✭ 112 (+220%)
Mutual labels:  openid-connect, identityserver4
Identityserver4 Example
Example IdentityServer 4 Implementation
Stars: ✭ 136 (+288.57%)
Mutual labels:  openid-connect, identityserver4
example-oidc
OIDC (OpenID Connect) Example for http://openid.net/connect/
Stars: ✭ 221 (+531.43%)
Mutual labels:  openid-connect, identityserver4
IdentityServerSample
Sample ASP.NET Core MVC and Angular apps and API using Identity Server 4
Stars: ✭ 25 (-28.57%)
Mutual labels:  openid-connect, identityserver4
Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
Stars: ✭ 46 (+31.43%)
Mutual labels:  identityserver4
oxd
Client software to secure apps with OAuth 2.0, OpenID Connect, and UMA
Stars: ✭ 40 (+14.29%)
Mutual labels:  openid-connect
yii-auth-client
Yii Framework external authentication via OAuth and OpenID Extension
Stars: ✭ 20 (-42.86%)
Mutual labels:  openid-connect
s3-proxy
S3 Reverse Proxy with GET, PUT and DELETE methods and authentication (OpenID Connect and Basic Auth)
Stars: ✭ 106 (+202.86%)
Mutual labels:  openid-connect

IdentityServer4 and SignalR

This is an example of how to generate JWT tokens using IdentityServer4 and use them to authenticate users in SignalR via a React/TypeScript Single Page App.
It will accompany this blog post.

Prerequisites:

You can run this from the command line if you have Node and Dotnet Core installed, or you can use VS2015 or greater:

Create and Install Asymmetric Keys

From the Developer Command Prompt:

> makecert -n "CN=ExampleTest" -a sha256 -sv ExampleTest.pvk -r ExampleTest.cer
> pvk2pfx -pvk ExampleTest.pvk -spc ExampleTest.cer -pfx ExampleTest.pfx

The pvk2pfx command combines the pvk and cer files into a single pfx file containing both the public and private keys for the certificate. The IdentityServer4 app will use the private key from the pfx to sign tokens. The .cer file containing the public key can be shared with other services for the purpose of signature validation.

To install asymmetric keys:

  1. Go to Manage Computer Certificates in Windows
  2. Under Certificates - Local Computer => Personal => Certificates, right click and select All Tasks => Import...
  3. Select ExampleTest.pfx and import it (there's no password). You should see ExampleTest in the list.
  4. Under Certificates - Local Computer => Trusted People => Certificates, right click and select All Tasks => Import...
  5. Select ExampleTest.cer and import it (there's no password).

If you want to verify generated JWT tokens yourself at jwt.io, you can translate the .pfx to a .pem file:

openssl x509 -inform der -in ExampleTest.cer -pubkey -noout > ExampleTest_pub.pem

Launch from Command Line:

From one console:

> cd src\ChatAPI
> dotnet restore
> dotnet run

And in another console:

> cd src\IdentityServer
> dotnet restore
> dotnet run

And in a third console:

> cd src\Web
> npm install
> npm run start

In a browser, navigate to http://localhost:3000/.

The two test users are "lou" and "bud" with the password "password".

TODO

I have not been able to get a net461 app working in docker using a nanoserver image.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].