Refresh token is null when accessed through springboot OAuth2AuthorizedClient class

I have the following setup in okta

I am able to access the accessToken through the OAuth2AuthorizedClient.getAccessToken() method successfully but the OAuth2AuthorizedClient.getRefreshToken() always returns null value. Any idea on how i can resolve this?

Is your application requesting the offline_access scope when it authorizes into Okta in order to get a refresh_token?

I was able to get it by setting offline_access scope!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.