This question is actually a continuous question of [this](https://stackoverflow.com/questions/41421160/how-to-get-id-token-along-with-access-token-from-identityserver4-via-password "this") SO question of mine. I am trying to get access\_token and id\_token from Identityserver4 by using Authorization code flow.

But, If I try to access "Authorize" endpoint, I got 405 (method not allowed) HTTP error. 

HTTP GET Request

```
http://localhost:2000/connect/authorize?
client_id=client  
&client_secret=secret
&grant_type=authorization_code
&username=admin
&password=admin
&response_type=id_token+token
&scope=openid+profile+offline_access

```

Client:

```
new Client
{
  ClientId = "client", 
  ClientSecrets = { new Secret("secret".Sha256())},                   
  AllowedGrantTypes = new List<string> { "authorization_code" },
  AccessTokenType = AccessTokenType.Jwt,
  AllowedScopes = { StandardScopes.OpenId.Name, "api1" }
}

```

User:

```
  new InMemoryUser
  {
    Subject = "1",
    Username = "admin",
    Password = "admin"
  }

```

My question is, How to call authorize endpoint to get access\_token and id\_token? What's wrong in my "client" and "user" configuration?