# PKCE issue with https

**URL:** <https://forum.keycloak.org/t/pkce-issue-with-https/14371>\
**Category:** Configuring the server\
**Tags:** authentication, oidc\
**Created:** [March 17, 2022, 6:28am UTC](https://forum.keycloak.org/t/pkce-issue-with-https/14371 "2022-03-17T06:28:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbs575](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/tbs575/32/5349_2.png) [@tbs575](https://forum.keycloak.org/u/tbs575)\
**Post date:** [March 17, 2022, 6:28am UTC](https://forum.keycloak.org/t/pkce-issue-with-https/14371/1 "2022-03-17T06:28:41Z")

</div>

I setup keycloak server provide openid for owncloud. now I met problem.  
when I set openid auth with ‘http’ protocol, I can login into owncloud server, no any issue.  
but I set same openid auth with ‘https’ protocol, I met PKCE error. I checked keycloak log, found more detail.  
just woundering, is there somehing missing setting with keycloak, made http and https different.

```auto
06:01:52,315 WARN [org.keycloak.protocol.oidc.endpoints.TokenEndpoint] (default task-60) PKCE code verifier not specified, authUserId = eadc68c1-d69e-4ff6-909c-9b411834b990, authUsername = hs

06:01:52,316 WARN [org.keycloak.events] (default task-60) type=CODE_TO_TOKEN_ERROR, realmId=icep, clientId=owncloud, userId=eadc68c1-d69e-4ff6-909c-9b411834b990, ipAddress=192.168.160.1, error=code_verifier_missing, grant_type=authorization_code, code_id=26e1d933-d311-4a42-a498-46fe60c1d1a3, client_auth_method=client-secret

```

another thing, in https, I login owncloud with openid by keycloak, the first time, met PKCE error, and then login again, can enter logined page directly without inputing username & password. it seemed token is working.
