Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] token renewal after 10 min fails #9056

Closed
jnweiger opened this issue Sep 15, 2021 · 7 comments
Closed

[QA] token renewal after 10 min fails #9056

jnweiger opened this issue Sep 15, 2021 · 7 comments

Comments

@jnweiger
Copy link
Contributor

Seen with openidconnect 2.1.0-rc1 against kopano IDP

  • connect with testpilotcloud-client 2.9.0 -- using a kopano user
  • oidc authenticates via web browser
  • wait 10 minutes
  • after ca 10 Minutes the browser re-opens, the client waits for re-login

Expected behaviour: the auth token refreshes, without user interaction.

testpilotcloud-logdir.zip
owncloud.log.zip

@DeepDiver1975
Copy link
Member

More something for the client team to look into.
Refreshing the token is a flow between client and idp.

@michaelstingl
Copy link
Contributor

Desktop client tries to register 2x without success:

09-15 03:21:22:371 [ info sync.httplogger ]:	"ac8d6266-46e9-40c8-9a91-543f4829ea8c: 
Request: POST https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Content-Type: application/json, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/2.9.0rc2 (build 5135) (testpilotcloud, linuxmint-5.4.0-81-generic ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: ac8d6266-46e9-40c8-9a91-543f4829ea8c, Original-Request-ID: ac8d6266-46e9-40c8-9a91-543f4829ea8c, Content-Length: 222, } 
Data: [{\n    \"application_type\": \"native\",\n    \"client_name\": \"ownCloud Testpilot Edition 2.9.0rc2 (build 5135)\",\n    \"redirect_uris\": [\n        \"http://127.0.0.1\"\n    ],\n    \"token_endpoint_auth_method\": \"client_secret_basic\"\n}\n]"

09-15 03:21:22:676 [ info sync.httplogger ]:	"ac8d6266-46e9-40c8-9a91-543f4829ea8c: 
Response: POST 400 https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Cache-Control: no-cache, no-store, must-revalidate, Content-Length: 127, Content-Type: application/json; encoding=utf-8, Date: Wed, 15 Sep 2021 01:21:22 GMT, Pragma: no-cache, Referrer-Policy: origin, Server: Caddy, X-Content-Type-Options: nosniff, } 
Data: [{\n  \"error\": \"invalid_redirect_uri\",\n  \"error_description\": \"native clients must only use localhost redirect_uris with http\"\n}\n]"
09-15 03:21:23:280 [ info sync.httplogger ]:	"b7e18bf0-ef3c-42dd-8a09-7e1435601ff5: 
Request: POST https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Content-Type: application/json, User-Agent: Mozilla/5.0 (Linux) mirall/2.9.0rc2 (build 5135) (testpilotcloud, linuxmint-5.4.0-81-generic ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: b7e18bf0-ef3c-42dd-8a09-7e1435601ff5, Original-Request-ID: b7e18bf0-ef3c-42dd-8a09-7e1435601ff5, Content-Length: 222, } 
Data: [{\n    \"application_type\": \"native\",\n    \"client_name\": \"ownCloud Testpilot Edition 2.9.0rc2 (build 5135)\",\n    \"redirect_uris\": [\n        \"http://127.0.0.1\"\n    ],\n    \"token_endpoint_auth_method\": \"client_secret_basic\"\n}\n]"

09-15 03:21:23:543 [ info sync.httplogger ]:	"b7e18bf0-ef3c-42dd-8a09-7e1435601ff5: 
Response: POST 400 https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Cache-Control: no-cache, no-store, must-revalidate, Content-Length: 127, Content-Type: application/json; encoding=utf-8, Date: Wed, 15 Sep 2021 01:21:23 GMT, Pragma: no-cache, Referrer-Policy: origin, Server: Caddy, X-Content-Type-Options: nosniff, } 
Data: [{\n  \"error\": \"invalid_redirect_uri\",\n  \"error_description\": \"native clients must only use localhost redirect_uris with http\"\n}\n]"

3 Minutes later it falls back to builtin client ID xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69:

09-15 03:24:26:873 [ info sync.httplogger ]:	"369a2244-2dbb-44f0-ad0c-06d5a8dfa7d6: 
Request: POST https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/token 
Header: { Authorization: Basic [redacted], Content-Type: application/x-www-form-urlencoded; charset=UTF-8, User-Agent: Mozilla/5.0 (Linux) mirall/2.9.0rc2 (build 5135) (testpilotcloud, linuxmint-5.4.0-81-generic ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: 369a2244-2dbb-44f0-ad0c-06d5a8dfa7d6, Original-Request-ID: 369a2244-2dbb-44f0-ad0c-06d5a8dfa7d6, Content-Length: 448, } 
Data: [client_id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69&client_secret=UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh&scope=openid%20offline_access%20email%20profile&grant_type=authorization_code&code=_3LBI6X6U4j27Ljcho-gQ3gJzojdNCkP&redirect_uri=http://127.0.0.1:37419&code_verifier=JdwAXHT-H6CmDQHwSdQBhv7V9KokOn0V7A2VUbZbsINse1TScOVJnnDmh3iAsHYwWK3tiwUA1hEjk20RNOIQinJnr2TuP75coMjU5qlEBxY9ZeX-EGgo7kpGDMs3rzmG]"

09-15 03:24:27:209 [ info sync.httplogger ]:	"369a2244-2dbb-44f0-ad0c-06d5a8dfa7d6: 
Response: POST 200 https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/token 
Header: { Cache-Control: no-store, Content-Type: application/json; encoding=utf-8, Date: Wed, 15 Sep 2021 01:24:27 GMT, Pragma: no-cache, Server: Caddy, Vary: Origin, Transfer-Encoding: chunked, } 
Data: [{\n  \"access_token\": \"eyJhbGciOiJQUzI1NiIsImtpZCI6Imtvbm5lY3RkLXRva2Vucy1zaWduaW5nLWtleSIsInR5cCI6IkpXVCJ9.eyJhdWQiO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r5iEl3pVfYmNcaLBIsivNl6q9NiLGqHqFvpnWrmpUJ3BJ4mDI\",\n  \"expires_in\": 600\n}\n]"

At renewal, desktop sync client tries to register again 2x without success:

09-15 03:34:36:567 [ info sync.httplogger ]:	"d8686658-9053-4489-a35d-4d46dece6ed2: 
Request: POST https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Content-Type: application/json, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/2.9.0rc2 (build 5135) (testpilotcloud, linuxmint-5.4.0-81-generic ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: d8686658-9053-4489-a35d-4d46dece6ed2, Original-Request-ID: d8686658-9053-4489-a35d-4d46dece6ed2, Content-Length: 222, } 
Data: [{\n    \"application_type\": \"native\",\n    \"client_name\": \"ownCloud Testpilot Edition 2.9.0rc2 (build 5135)\",\n    \"redirect_uris\": [\n        \"http://127.0.0.1\"\n    ],\n    \"token_endpoint_auth_method\": \"client_secret_basic\"\n}\n]"

09-15 03:34:36:866 [ info sync.httplogger ]:	"d8686658-9053-4489-a35d-4d46dece6ed2: 
Response: POST 400 https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Cache-Control: no-cache, no-store, must-revalidate, Content-Length: 127, Content-Type: application/json; encoding=utf-8, Date: Wed, 15 Sep 2021 01:34:36 GMT, Pragma: no-cache, Referrer-Policy: origin, Server: Caddy, X-Content-Type-Options: nosniff, } 
Data: [{\n  \"error\": \"invalid_redirect_uri\",\n  \"error_description\": \"native clients must only use localhost redirect_uris with http\"\n}\n]"
09-15 03:34:37:443 [ info sync.httplogger ]:	"15d8a57a-68e1-44a9-b3af-5b80295187dd: 
Request: POST https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Content-Type: application/json, User-Agent: Mozilla/5.0 (Linux) mirall/2.9.0rc2 (build 5135) (testpilotcloud, linuxmint-5.4.0-81-generic ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: 15d8a57a-68e1-44a9-b3af-5b80295187dd, Original-Request-ID: 15d8a57a-68e1-44a9-b3af-5b80295187dd, Content-Length: 222, } 
Data: [{\n    \"application_type\": \"native\",\n    \"client_name\": \"ownCloud Testpilot Edition 2.9.0rc2 (build 5135)\",\n    \"redirect_uris\": [\n        \"http://127.0.0.1\"\n    ],\n    \"token_endpoint_auth_method\": \"client_secret_basic\"\n}\n]"

09-15 03:34:37:692 [ info sync.httplogger ]:	"15d8a57a-68e1-44a9-b3af-5b80295187dd: 
Response: POST 400 https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/register 
Header: { Cache-Control: no-cache, no-store, must-revalidate, Content-Length: 127, Content-Type: application/json; encoding=utf-8, Date: Wed, 15 Sep 2021 01:34:37 GMT, Pragma: no-cache, Referrer-Policy: origin, Server: Caddy, X-Content-Type-Options: nosniff, } 
Data: [{\n  \"error\": \"invalid_redirect_uri\",\n  \"error_description\": \"native clients must only use localhost redirect_uris with http\"\n}\n]"

3 Minutes later it falls back to builtin client ID again xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69:

09-15 03:37:37:735 [ info sync.httplogger ]:	"6790142c-6cec-4913-905a-36641a85b465: 
Request: POST https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/token 
Header: { Authorization: Basic [redacted], Content-Type: application/x-www-form-urlencoded; charset=UTF-8, User-Agent: Mozilla/5.0 (Linux) mirall/2.9.0rc2 (build 5135) (testpilotcloud, linuxmint-5.4.0-81-generic ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: 6790142c-6cec-4913-905a-36641a85b465, Original-Request-ID: 6790142c-6cec-4913-905a-36641a85b465, Content-Length: 448, } 
Data: [client_id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69&client_secret=UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh&scope=openid%20offline_access%20email%20profile&grant_type=authorization_code&code=zA5ifVfhSkR-Lavt59Nmw7lPw1RQ7vn0&redirect_uri=http://127.0.0.1:39491&code_verifier=aXbK2eljLNoBqhnQ2Xjqf5mC0PEF0EnD3URlCrEMsJwe5pAf-3zjMzR7Kv3aStus2dB45tDw5cvDxbgX1iNgzSzmunCfK3QtSudeHFFcn9P30vRyyWPf514wIVcM55M2]"

09-15 03:37:38:093 [ info sync.httplogger ]:	"6790142c-6cec-4913-905a-36641a85b465: 
Response: POST 200 https://konnect-oidc-210rc1-20210914.jw-qa.owncloud.works/konnect/v1/token 
Header: { Cache-Control: no-store, Content-Type: application/json; encoding=utf-8, Date: Wed, 15 Sep 2021 01:37:38 GMT, Pragma: no-cache, Server: Caddy, Vary: Origin, Transfer-Encoding: chunked, } 
Data: [{\n  \"access_token\": \"eyJhbGciOiJQUzI1NiIsImtpZCI6Imtvbm5lY3RkLXRva2Vucy1zaWduaW5nLWtleSIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ4ZFhPdDEzSkt4eW0xQjFRY0VuY2YyWERrTEFleE1CRndpVDlqNkVmaGhIRkpoczJLTTlqYmpUbWY4SkJYRTY5IiwiZXhwIjoxNjMxNjcwNDU3LCJqdGkiOiItNkJVYWZ1NnlieWI2dndOa1pnQktPYVdORjZtc0JXRiIsImlhdCI6MTYzMTY2OTg1NywiaXNzIjoiaHR0cHM6Ly9rb25uZWN0LW9pZGMtMjEwcmMxLTIwMjEwOTE0Lmp3LXFhLm93bmNsb3VkLndvcmtzIiwic3ViIjoiQXRfbnAzMjI2eUJhbm9FbUtxQWw1bFdkVjZhdDVtb0dwNVRRRXFoTzFsZklXSUdsMDNvRW1XX3hYRFpFa01tUklNaE1SNExHMzRrWEI1alNmYUppREFAa29ubmVjdCIsImtjLmlzQWNjZXNzVG9rZW4iOnRydWUsImtjLmF1d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F-EMB3ivsr4Vlc3c-WXfMjW6lBpakt_mOOwSbqE2kSEV_wG8U_VN5PDqwa5OtK8DZDFEvYCqGM9J73HN3Vz0Vj4ZYBMCKoxt860LciKj1v4UYAf3Kp9gKiqPxJf7eIdltISumSFZnwb1wVVetwfl44GUw3aDXK4v8SHeJLdh0YBgyDLqqNAEwphX-yQVhlXalda3v0wlQxOdXRWTdOH6GSH2s-QLOi90Xyf_bQbQ1mpDdQ_FKBeYfeOXToiVlkMp9UpKSBB6R1_mffrL64gyHU4NEKz84jBQdIOGUTN5_vulHG6TYSop_nLIBy15cTMrZDbvQQLMytsUKVuTzPewAY9Z4xi1bX8MojbjB3VWAB-1PFb9H7grxdMx90Vqmv-nB-SmLtMSvyPtXipTnBRbh6cAVJvzI_gvbPpFEFXmxR74hKkcWr5Ssnk77AXVv10c2w4K25LD0bvRqOLuANnt6IYj4LOSB1PrGpPgiqnMKzU8KNoncaHsS5bflRKXICqn3U4qmLWmG3mcUVntn5ECe-hegKB3goEyyzVSD3kvkkYhOI9GzsJaXPVSsU2mHUBNSas6Rx5awxi3-hUi7wvgQDIE8hQ7UjuYtItGzrJiDYgwNKDGccwS7wzADaZcG51hgtyULDuPvSdz50e5iXsd1ZVp1rzQD2OfLZctCcU\",\n  \"expires_in\": 600\n}\n]"

Registration error sounds like #8968

Data: [{
  \"error\": \"invalid_redirect_uri\",
  \"error_description\": \"native clients must only use localhost redirect_uris with http\"
  }
  ]"

But RFC 8252 is very clear about localhost vs. 127.0.0.1:
https://datatracker.ietf.org/doc/html/rfc8252#section-7.3
https://datatracker.ietf.org/doc/html/rfc8252#section-8.3

Can be fixed in Kopano Konnect config? Or Kopano Konnect bug? @longsleep any thoughts?

@DeepDiver1975
Copy link
Member

Please transfer this to the client repo - it is unrelated to the openidconnect app. THX

@longsleep
Copy link

Can be fixed in Kopano Konnect config? Or Kopano Konnect bug? @longsleep any thoughts?

This has been relaxed in February - see libregraph/lico@3e79432 (this commit is also released as part of Konnect v0.34.0). Please make sure to use the current version and it should be fine @michaelstingl

@jnweiger
Copy link
Contributor Author

jnweiger commented Sep 18, 2021

@longsleep That is good news. Thank you!

We use docker for this test. I believe the docker image needs a gentle nudge.

docker run --rm kopano/kopano_konnect:latest konnectd version
Unable to find image 'kopano/kopano_konnect:latest' locally
latest: Pulling from kopano/kopano_konnect
...
Digest: sha256:94b6bf86a6cce85acf65a84dd4ac56c156e92041b430e6b0a48a3d69b9dd8440
Status: Downloaded newer image for kopano/kopano_konnect:latest
Version    : 0.33.11
Build date : reproducible
Built with : go1.14.10 linux/amd64

latest points to kopano/kopano_konnect:0.33 -- there is no kopano/kopano_konnect:0.34 at dockerhub.

@DeepDiver1975 DeepDiver1975 transferred this issue from owncloud/openidconnect Sep 19, 2021
@jnweiger
Copy link
Contributor Author

jnweiger commented Nov 11, 2021

@longsleep latest still points to kopano/kopano_konnect:0.33 -- there is no kopano/kopano_konnect:0.34 at dockerhub -- redoing the above commands. Am I doing something wrong?

@jnweiger
Copy link
Contributor Author

jnweiger commented Mar 9, 2022

@longsleep can you please doublecheck, why there is no new docker image?

docker pull kopano/kopano_konnect:latest still pulls the 0.33 release.
We have a new owncloud openidconnect release pending, the issue is still present.

Is there an update procedure that I could run from within the 0.33 docker image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants