Commit 8d6b9e82 authored by alan.f's avatar alan.f

add-RefreshAccessToken

parent d873090f
...@@ -54,6 +54,7 @@ namespace IdentityServer ...@@ -54,6 +54,7 @@ namespace IdentityServer
}, },
//puts all the claims in the id token //puts all the claims in the id token
//AlwaysIncludeUserClaimsInIdToken=true, //AlwaysIncludeUserClaimsInIdToken=true,
AllowOfflineAccess=true,
RequireConsent=false RequireConsent=false
} }
}; };
......
...@@ -38,7 +38,7 @@ namespace MvcClient.Controllers ...@@ -38,7 +38,7 @@ namespace MvcClient.Controllers
var result = await GetSecret(accessToken); var result = await GetSecret(accessToken);
//await RefreshAccessToken(); await RefreshAccessToken();
return View(); return View();
} }
......
...@@ -39,6 +39,7 @@ namespace MvcClient ...@@ -39,6 +39,7 @@ namespace MvcClient
config.Scope.Add("rc.scope"); config.Scope.Add("rc.scope");
config.Scope.Add("ApiOne"); config.Scope.Add("ApiOne");
config.Scope.Add("ApiTwo"); config.Scope.Add("ApiTwo");
config.Scope.Add("offline_access");
} ); } );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment