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

add-RefreshAccessToken

parent d873090f
......@@ -54,6 +54,7 @@ namespace IdentityServer
},
//puts all the claims in the id token
//AlwaysIncludeUserClaimsInIdToken=true,
AllowOfflineAccess=true,
RequireConsent=false
}
};
......
......@@ -38,7 +38,7 @@ namespace MvcClient.Controllers
var result = await GetSecret(accessToken);
//await RefreshAccessToken();
await RefreshAccessToken();
return View();
}
......
......@@ -39,8 +39,9 @@ namespace MvcClient
config.Scope.Add("rc.scope");
config.Scope.Add("ApiOne");
config.Scope.Add("ApiTwo");
config.Scope.Add("offline_access");
} );
services.AddHttpClient();
......
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