「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicrosofttech.osscons.jp/]]」は、「[[Open棟梁Project>https://github.com/OpenTouryoProject/]]」,「[[OSSコンソーシアム .NET開発基盤部会>https://www.osscons.jp/dotNetDevelopmentInfrastructure/]]」によって運営されています。

-戻る
--[[ASP.NET Core]]
---[[ASP.NET Coreへの移行]]
--[[認証基盤]]
---[[ASP.NET Forms認証]]
---[[ASP.NET Identity]]

* 目次 [#oee58177]
#contents

*概要 [#jde66ae5]
ASP.NET Core における 認証についてまとめた。

*詳細 [#mb9460c3]

**CookieAuthentication [#s308c20a]

***概要 [#t4690d70]
[[MVC5>ASP.NET MVC]], [[MVC6>ASP.NET Core MVC]] の両方でASP.NET Forms認証の代替となる、~
CookieAuthenticationミドルウェアを使用可能。

***参考 [#ne8993c6]
-ASP.NET Core Id なしの cookie 認証を使用します。 | Microsoft Docs~
https://docs.microsoft.com/ja-jp/aspnet/core/security/authentication/cookie

-Example for how to configure CookieAuthentication~
in ASP.NET Core 2 Preview · Issue #1219 · aspnet/Security~
https://github.com/aspnet/Security/issues/1219

-Using Cookie Authentication without ASP.NET Core Identity in ASP.NET Core 2.0 - iAspNetCore~
http://www.iaspnetcore.com/Blog/BlogPost/599ec233a4895a1388125572/using-cookie-authentication-without-aspnet-core-identity-in-aspnet-core-20

-以下は既に古い。
--ASP.NET Core MVC 1.0 で Cookie を使ったユーザー認証を独自に実装する - しばやん雑記~
http://blog.shibayan.jp/entry/20160517/1463476453

**[[ASP.NET Core Identity]] [#i5e6908d]
-認証は[[OAuth]]2のIdP/STSとして、アプリから分離したほうがイイ。~
-[[ASP.NET Core MVC]]用には、[[ASP.NET Core Identity]]がある。

*参考 [#g0acd4d7]
-Microsoft Docs
--ASP.NET Core での認証~
https://docs.microsoft.com/ja-jp/aspnet/core/security/authentication/
--ASP.NET Core での承認~
https://docs.microsoft.com/ja-jp/aspnet/core/security/authorization/


----
Tags: [[:プログラミング]], [[:.NET開発]], [[:.NET Core]], [[:ASP.NET]], [[:ASP.NET MVC]]


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS