From 2cfee78597971b2e3e7e612eb9d7e8805e1aef85 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 10 Aug 2020 21:35:58 +0200 Subject: add signing credentials --- src/server/IdentityServer/Config.cs | 4 ++++ src/server/IdentityServer/ProfileService.cs | 30 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/server/IdentityServer/ProfileService.cs (limited to 'src/server/IdentityServer') diff --git a/src/server/IdentityServer/Config.cs b/src/server/IdentityServer/Config.cs index 5b2bf13..c005377 100644 --- a/src/server/IdentityServer/Config.cs +++ b/src/server/IdentityServer/Config.cs @@ -27,6 +27,10 @@ namespace Dough.IdentityServer RefreshTokenExpiration = TokenExpiration.Sliding, AlwaysSendClientClaims = true, AllowOfflineAccess = true, + Claims = new List + { + new ClientClaim() + }, AllowedScopes = { diff --git a/src/server/IdentityServer/ProfileService.cs b/src/server/IdentityServer/ProfileService.cs new file mode 100644 index 0000000..197086c --- /dev/null +++ b/src/server/IdentityServer/ProfileService.cs @@ -0,0 +1,30 @@ +using System.Reflection; +using System.Threading.Tasks; +using Dough.Models.Database; +using Dough.Utilities; +using IdentityServer4; +using IdentityServer4.Models; +using IdentityServer4.Services; + +namespace Dough.IdentityServer +{ + public class ProfileService : IProfileService + { + private readonly MainDbContext _context; + + public ProfileService(MainDbContext context) + { + _context = context; + } + + public Task GetProfileDataAsync(ProfileDataRequestContext context) + { + throw new System.NotImplementedException(); + } + + public Task IsActiveAsync(IsActiveContext context) + { + return default; + } + } +} \ No newline at end of file -- cgit v1.3