By: Julian Ruger user 14 Aug 2018 at 9:52 a.m. CDT

3 Responses
Julian Ruger gravatar
We successfully installed the Gluu Gateway and were able to create a SSH tunnel on port 1338 to access the Gluu Gateway admin portal. After 24 hours we were unable to login because the client had expired (as expected). Is possible to extend the client expiration date after it has expired? According to the documentation the command 'update_site' can be used to extend the client's lifetime. But how can we execute this (and other) command(s)?

By Yuriy Zabrovarnyy staff 15 Aug 2018 at 11:05 a.m. CDT

Yuriy Zabrovarnyy gravatar
There are two ways to handle it: 1. set client lifetime to some suitable amount at oxauth configuration `dynamicRegistrationExpirationTime`. (If set it to 1 year then all dynamically registered clients will have 1 year lifetime.) 2. You can call `update_site` command against oxd-server to extend expiration time. For this you can use one of our libraries, please check documentation here https://gluu.org/docs/oxd/3.1.3/libraries/api-client-libraries/ and here https://gluu.org/docs/oxd/3.1.3/faq/#how-can-i-avoid-client-expiration Thanks, Yuriy Z

By Julian Ruger user 17 Aug 2018 at 1:51 a.m. CDT

Julian Ruger gravatar
Thank you for your response! I managed to execute the update_site command. I am using the php sample app (https://github.com/GluuFederation/oxd-php-library/tree/3.1.3/client.example.com). But when I execute the update_site command I get the same error: 'expired_client : Invalid oxd_id. Client is expired.'. Is it possible to update the already expired client (in this case the konga client for the Gluu Gateway admin portal)? Or should I setup a new client and/or register a new site with the setup_client and register_site commands?

By Yuriy Zabrovarnyy staff 17 Aug 2018 at 10:02 a.m. CDT

Yuriy Zabrovarnyy gravatar
Hi Julian, We can update only not expired clients. When client is expired it is scheduled for removing on OP, so at the time you call `update_site` for expired client, it can be already removed on OP. Thanks, Yuriy Z