aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/IdentityServer
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2020-08-09 15:51:33 +0200
committerivarlovlie <git@ivarlovlie.no>2020-08-09 15:51:33 +0200
commit8614d18522441543e08c37c68121fed1fa8d6ae7 (patch)
treedd53ae13bdf269098e385107d27dcc2a0d8d73db /src/server/IdentityServer
parent9b2c6f550a3a705e02dc4f86797c9223ad59d5fa (diff)
downloaddough-8614d18522441543e08c37c68121fed1fa8d6ae7.tar.xz
dough-8614d18522441543e08c37c68121fed1fa8d6ae7.zip
auth user
Diffstat (limited to 'src/server/IdentityServer')
-rw-r--r--src/server/IdentityServer/Config.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/IdentityServer/Config.cs b/src/server/IdentityServer/Config.cs
index 41363f1..5b2bf13 100644
--- a/src/server/IdentityServer/Config.cs
+++ b/src/server/IdentityServer/Config.cs
@@ -22,11 +22,17 @@ namespace Dough.IdentityServer
RedirectUris = Constants.BrowserAppLoginRedirectUrls,
PostLogoutRedirectUris = Constants.BrowserAppLogoutRedirectUrls,
AllowedCorsOrigins = Constants.BrowserAppUrls,
+ AccessTokenType = AccessTokenType.Reference,
+ RequireConsent = false,
+ RefreshTokenExpiration = TokenExpiration.Sliding,
+ AlwaysSendClientClaims = true,
+ AllowOfflineAccess = true,
AllowedScopes =
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
+ IdentityServerConstants.StandardScopes.OfflineAccess,
MainApiScopeName
}
}
@@ -45,4 +51,4 @@ namespace Dough.IdentityServer
new IdentityResources.Profile(),
};
}
-}
+} \ No newline at end of file