By: Suriya U-ruekolan user 09 Mar 2021 at 2:22 a.m. CST

4 Responses
Suriya U-ruekolan gravatar
Now, I use gluu server 4.2.3 final with oxd server 4.2 ,and I'm following python tutorial with oxd from oxd server document. After calling the api /get-client-token, the output is not returned refresh token. I have found only access token and scope. {u'access_token': u'61f2615e-0814-41c8-8165-d6b57ca94559', u'scope': [u'openid', u'profile', u'oxd'], u'expires_in': 299} Anybody, please help me for this issue? Thanks Suriya

By Arnab Dutta staff 10 Mar 2021 at 11:25 p.m. CST

Arnab Dutta gravatar
Hi Suriya, Thanks for reporting the issue. 1. Please for follow following https://gluu.org/docs/oxd/tutorials/python/ for oxd-4.2 version. 2. Please check response from http://<oxd-host>:8443/health-check to confirm oxd-server is running. 3. Please share complete oxd-server.log and oxd-server.yml in case you face any error. Regards Arnab

By Suriya U-ruekolan user 11 Mar 2021 at 9:24 a.m. CST

Suriya U-ruekolan gravatar
Hi Arnab 1. I have followed python tutorial for oxd-4.2 version as your reply. 2. The response from /health-check as follows: { "application": "oxd", "version": "4.2.3.Final", "status": "running" } 3. The oxd-server log file and oxd-server.yml file is shared as these link: [oxd-server.yml file](https://bit.ly/3cjEPEl) and [oxd log file](https://shorturl.at/oM157) Please help me to investigate the problem. Thanks Regards Suriya

By Arnab Dutta staff 12 Mar 2021 at 2:57 a.m. CST

Arnab Dutta gravatar
Hi Suriya, The `refresh_token` will not be generated for `/get-client-token` endpoint. Reason: The `/get-client-token` endpoint uses `CLIENT_CREDENTIALS` grant_type which has no provision to generate `refresh_token` using Gluu Auth Server. Code Ref: https://github.com/GluuFederation/oxAuth/blob/master/Server/src/main/java/org/gluu/oxauth/token/ws/rs/TokenRestWebServiceImpl.java#L319 Question: The `/get-client-token` is for generating token to protect oxd api. I think you don't need `refresh_token` here. Just generate new token whenever required. Regards, Arnab

By Arnab Dutta staff 14 Mar 2021 at 5:34 a.m. CDT

Arnab Dutta gravatar
Provided reply to user's query. Closing the ticket.