IdentityServer4
IdentityServer4 copied to clipboard
Quickstart says to use AllowOfflineAccess but the accompanying code sample doesn't include it
The quickstart at ASP.NET Core and API access says
Updating the client configuration in IdentityServer is straightforward - we simply need to add the api1 resource to the allowed scopes list. In addition we enable support for refresh tokens via the AllowOfflineAccess property
but the code sample doesn't include the AllowOfflineAttribute property:
new Client
{
ClientId = "mvc",
ClientSecrets = { new Secret("secret".Sha256()) },
AllowedGrantTypes = GrantTypes.Code,
// where to redirect to after login
RedirectUris = { "https://localhost:5002/signin-oidc" },
// where to redirect to after logout
PostLogoutRedirectUris = { "https://localhost:5002/signout-callback-oidc" },
AllowedScopes = new List<string>
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
"api1"
}
}
thanks. Added.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.