OIDC PKCE GoLang CLI

Is there an example of using PKCE method for authentication in GOLang? When passing the code_challenge and code_challenge_method I get an error stating the following:

PKCE code verifier is required when the token endpoint authentication method is ‘NONE’."

Endpoint: /oauth2/v1/authorize

Query Params:
access_type: offline
client_id: OKTA_ID
code_challenge: SHA256 CODE
code_challenge_method: S256
redirect_uri: http://localhost:8085/auth/callback
response_type: code
scope: openid profile email groups offline_access
state: STATE_STRING

I think endpoint should include authZ server id (assuming you are working on your OIDC application).

Also what is access_type? I don’t believe /authorize endpoint has such parameter.

Have said all above, I still not sure, why your response from Okta looks like that :slight_smile: But try first to correct all mentioned and see if it’s different