IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Quickstart says to use AllowOfflineAccess but the accompanying code sample doesn't include it

Open korggy opened this issue 6 years ago • 2 comments

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"
    }
  }

korggy avatar Aug 31 '20 18:08 korggy

thanks. Added.

leastprivilege avatar Sep 02 '20 09:09 leastprivilege

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.

github-actions[bot] avatar Nov 26 '20 18:11 github-actions[bot]