I'm trying to configure IS4 to allow Authorization Code for my client (GrantTypes.CodeAndClientCredentials),
I'm configuring my MVC 5 client using UseOpenIdConnectAuthentication and setting the response_type to code only.
```C#
app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
{
AuthenticationScheme = "oidc",
SignInScheme = "Cookies",
Authority = Clients.Constants.BaseAddress,
RequireHttpsMetadata = false,
ClientId = "mvc.code",
ClientSecret = "mySecret",
ResponseType = "code",
Scope = { "openid", "profile", "email", "offline_access" },
GetClaimsFromUserInfoEndpoint = true,
SaveTokens = true
});
But everytime I make a request to my IS4 server, I get a response saying
Invalid grant type for client: authorization_code
```
I see all the samples from the IS4 sample repo are now using Hybrid Flow, does IS4 still support Authorization Code?
logs or it never happened.
After reviewing all my applications I noticed there was a problem in my IS configuration. It was an error on our part.
Can we build a sample using Authorization Code to IdentityServer4.Samples?
Why would you use code over hybrid?
In our scenario some of our clients are applications that can't be customized and have only code flow implemented.
OK I understand - when we have time, we'll add a code flow example.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
logs or it never happened.