Giter Site home page Giter Site logo

damienbod / blazorserveroidc Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 3.0 1.47 MB

Blazor Server OpenID Connect authentication and session security

Home Page: https://damienbod.com/2024/01/03/securing-a-blazor-server-application-using-openid-connect-and-security-headers/

License: MIT License

HTML 13.18% C# 49.88% CSS 3.57% JavaScript 33.37%
blazor blazor-server iam oidc openid-connect openiddict csp identity

blazorserveroidc's Introduction

Blazor Server OpenID Connect

Implements a confidential client using OpenID Connect (code flow with PKCE)

.NET

Securing a Blazor Server application using OpenID Connect and security headers

Migrate ASP.NET Core Blazor Server to Blazor Web

Using a CSP nonce in Blazor Web

Migrations

Powershell (identity provider project)

Add-Migration "init_sts" -c ApplicationDbContext

Running manually

Update-Database -Context ApplicationDbContext

History

  • 2024-04-24 Updated packages
  • 2024-03-24 Updated packages
  • 2024-02-19 Updated packages
  • 2024-02-16 Updated packages
  • 2024-02-12 Fix CSP, use nonce
  • 2024-01-14 Updated packages
  • 2024-01-11 Added support for Blazor Web, migrated from Blazor Server

Links

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/interactive-server-side-rendering

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/quick-start-blazor-server-app

https://stackoverflow.com/questions/64853618/oidc-authentication-in-server-side-blazor

https://learn.microsoft.com/en-us/aspnet/core/security/authentication/claims

https://openid.net/developers/how-connect-works/

https://github.com/openiddict/openiddict-core

https://datatracker.ietf.org/doc/html/rfc9126

https://learn.microsoft.com/en-us/aspnet/core/security/authentication/claims

https://stackoverflow.com/questions/59121741/anti-forgery-token-validation-in-mvc-app-with-blazor-server-side-component

Switch Blazor Server to Blazor Web (Server)

Warning

The required security headers can only be applied to Blazor Web in InteractiveServer mode

https://github.com/javiercn/BlazorWebNonceService

https://learn.microsoft.com/en-us/aspnet/core/migration/70-80

blazorserveroidc's People

Contributors

damienbod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blazorserveroidc's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.