Giter VIP home page Giter VIP logo

Comments (7)

dvogel avatar dvogel commented on September 17, 2024

Hi @cassiopeiaym. I'm sorry you're having trouble with this. Luckily the fix should be easy. In order to receive a refresh token, you need to request access to the offline_access scope. That's missing from our current documentation. I don't have a great explanation why that's missing but I'm fixing it today. Thanks for helping us find that mistake!

from vets-api-clients.

cassiopeiaym avatar cassiopeiaym commented on September 17, 2024

@dvogel
Thank you for your guide about this.

Unfortunately, I've still not received the keyvalue for 'refresh_token' and 'expires_in' :(
I requsted the scope for these :

openid profile email offline_access launch/patient patient/Patient.read patient/AllergyIntolerance.read patient/Condition.read patient/DiagnosticReport.read patient/Immunization.read patient/Medication.read patient/MedicationOrder.read patient/MedicationStatement.read patient/Observation.read patient/Procedure.read veteran_status.read

Most of the scopes I knew were requested.

also, additionally I attached the scope for 'offline_access' you said.
But I couldn't catch the refresh_token and expires_in ~

I can't handle the data about refresh_token at all.

Please check your authoriztion code flow and let me know to get ' refresh_token'.

from vets-api-clients.

dvogel avatar dvogel commented on September 17, 2024

Hi @cassiopeiaym. There was an additional issue I had to fix with the configuration of your application on our end. Could you try once more?

from vets-api-clients.

cassiopeiaym avatar cassiopeiaym commented on September 17, 2024

@dvogel
Hi ~ finally I got the refresh_token. Thank you so moch for your help
Of course, I would like you to send me the value of result for expires_in like as your documents, but I will proceed with offline_access mode with refresh_token and access_token.

from vets-api-clients.

dvogel avatar dvogel commented on September 17, 2024

I'm glad you were able to get the refresh_token. That same payload should have an expires_at field. I think there was a typo in the documentation that showed the token payload having an expires_in field. We've fixed that in the most recent documentation updates. Please make sure you refresh to receive the most recent documentation. To quickly confirm what you should see:

screenshot_for_cassiopeiaym

from vets-api-clients.

cassiopeiaym avatar cassiopeiaym commented on September 17, 2024

@dvogel
Thank you for everything. 👍

I have requested the API for get a new 'refesh_token' now. (grant_type=refresh_token)
and received the same format as when got the access_token payload.

I can calculate the 'expires_in' from decoded 'access_token' data.
Everythins is okay.

But I have a question about the refresh_token.
I think this refresh_token has not the JWT token format.
Can I know when the 'refresh_toekn' expires ? or Please Tell me how I can find it .

from vets-api-clients.

dvogel avatar dvogel commented on September 17, 2024

@cassiopeiaym refresh tokens never expire. We have the ability to revoke them in the event of a security incident but in your development you can assume they are valid.

from vets-api-clients.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.