Search code examples
postmanasp.net-core-2.0refresh-tokenopeniddict

How to get refresh token for the first time?


When I request the access token for the very first time, am I not supposed to get refresh token as well?

I'm following .net core version of refresh flow logic (Startup.cs, AuthorizationController.cs) and testing with postman to get access token and refresh token. I can get access token, but seems like it is not returning refresh token.

What am I missing here?

enter image description here


Solution

  • Solved.

    I had to add an extra key&value in postman Body

    Key: scope Value: openid offline_access

    enter image description here