IdentitySeverの紹介(OAuth 2.0およびOpenID Connectのサーバーの実装をサポート)

IdentityServerの紹介 IdentityServerは、現代のWebアプリケーションやAPIのセキュリティを 担保するための強力なフレームワークです。 主に.NET環境でのOAut...

ASP.NET Core: UseAuthentication と UseAuthorization の順序の重要性

ASP.NET Core: UseAuthentication と UseAuthorization の順序の重要性 ASP.NET Coreにおいて、ミドルウェアの順序は特に重要です。中でも...

CookieAuthenticationOptionsのDIの仕方

CookieAuthenticationOptionsの仕方のメモでごやんす appsettings.json { "CookieAuthentication": { "Logi...

IHttpContextAccessorとは

名前の通り、HttpContextにアクセスるためのクラスである。 IHttpContextAccessor HttpContextAccessor ASP.NET Core では、Http...

IdentitySeverのテンプレートisuiで吐き出された内容をみていく Part1

/src/IdentityServer/Pages/Account/Create/Index.cshtml.cs を見ていく // Index.cshtml.cs using Duende.I...

IdentitySeverのRegistering Custom Storesを簡易実装した

やったこと Registering Custom Storesの 記載通り、下記をInterfaceを実装してDIしてみた。 IClientStore ICorsPolicySer...

IdentityResource-vs-ApiResource-vs-ApiScope

IdentityResource/ApiResource/ApiScope それぞれの役割がわからなくなったので 自分なりの整理をしてみた。 下記の記事を参考にしています。 IdentitySe...

IdentitySeverのER図Configuration編

Table定義を書き起こしてみた ER図 || - これは強い関連を意味し、主キーまたは候補キー(ユニークキー)として機能するエンティティを指します。 o{ - これは「ゼロまたは...

IdentitySeverのAddIdentityServerなにやっているのか?(工事中

AddIdentityServer public static IIdentityServerBuilder AddIdentityServer(this IServiceCollection...

IdentitySeverのER図PersistedGrantDb編

Table定義を書き起こしてみた DeviceCodes テーブル 列名 データ型 必須 説明 ...

IdentitySeverのER図PersistedGrantDb編

Persisted Grant Store IPersistedGrantStoreについて IPersistedGrantStoreとは何か? IPersistedGrantStoreは...

IdentityServerの紹介: OAuth 2.0 と OpenID Connectのサーバーの実装をサポート

最近、DuendeのドキュメントでAdd Support for External Authenticationセクションを試していて、Googleの認証情報でのOAuth 2.0 クライアント...