IdentityServer4
선행 학습
IdentityServer4 공식 문서
IdentityServer4 + Asp.Net Core Identity in a single database
IdentityServer4.Templates 설치 필수
참고: Using ASP.NET Core Identity
dotnet new --install "IdentityServer4.Templates"
E:\BlazorBoilerplate\bbp_docker (main)
λ dotnet new --install "IdentityServer4.Templates"
다음 템플릿 패키지가 설치됩니다.
IdentityServer4.Templates
성공:IdentityServer4.Templates::4.0.1이(가) 다음 템플릿을 설치했습니다.
템플릿 이름 약식 이름 언어 태그
---------------------------------------------------- -------- ---- -------------------
IdentityServer4 Empty is4empty [C#] Web/IdentityServer4
IdentityServer4 Quickstart UI (UI assets only) is4ui [C#] Web/IdentityServer4
IdentityServer4 with AdminUI is4admin [C#] Web/IdentityServer4
IdentityServer4 with ASP.NET Core Identity is4aspid [C#] Web/IdentityServer4
IdentityServer4 with Entity Framework Stores is4ef [C#] Web/IdentityServer4
IdentityServer4 with In-Memory Stores and Test Users is4inmem [C#] Web/IdentityServer4
아래와 같은 2가지 방법으로 Project를 추가 할 수 있음.
1. VS 2019에서 추가하는 방법
2. 직접 cmd명령으로 추가하는 방법
dotnet new is4aspid
OpenID Connect 메타데이터 문서를 가져옵니다.
http://localhost:[설정된 포트]/.well-known/openid-configuration
https://deblokt.com/2019/09/20/02-identityserver4-entityframework/
|–|–|
제목 | 내용 |
---|---|
dbo.ApiClaims | 테이블에는 특정 API 리소스에 대한 액세스 토큰에 포함될 사용자 클레임에 대한 클레임 유형이 있습니다. |
dbo.ApiProperties | 테이블에는 특정 API 리소스와 관련된 추가 사용자 지정 키-값 쌍이 있습니다. |
dbo.ApiScopeClaims | 테이블은 지정된 범위에 대한 액세스 토큰에 포함될 사용자 클레임을 정의합니다. |
- “dbo.ApiClaims” 테이블에는 특정 API 리소스에 대한 액세스 토큰에 포함될 사용자 클레임에 대한 클레임 유형이 있습니다.
- “dbo.ApiProperties” 테이블에는 특정 API 리소스와 관련된 추가 사용자 지정 키-값 쌍이 있습니다.
- “dbo.ApiResources” 테이블은 보호해야 하는 API를 나타내는 리소스를 보유하고 있습니다. “dbo.ApiScopeClaims” 테이블은 지정된 범위에 대한 액세스 토큰에 포함될 사용자 클레임을 정의합니다.
- “dbo.ApiScopes” 테이블에는 특정 API 리소스에 대한 가능한 범위가 있습니다.
- “dbo.ApiSecrets” 테이블은 자체 검사 끝점에서 사용하는 API 리소스 비밀을 보유합니다(JWT와 반대로 액세스 토큰을 참조 토큰으로 사용할 때 사용).
댓글남기기