0

I have a custom service and in the custom service, I want to generate a new Bearer token for the current user ( it's logged in) with simple_oauth module. in its documentation is has not mentioned how can I generate new a new token for current logged in user. So, how can I generate a new Bearer token for current logged in user?

0

POST request to /oauth/token generates a new token (don't forget to add proper body params)

You can also use a refresh token to generate a new access token by using grant_type 'refresh_token'

  • thanks for you attention. yes, I knew this solution but I'm looking for a better solution. :) – Yuseferi May 12 '20 at 17:40
  • additionally, the grant_type is password and I don't have all users' passwords. so it's better to use another solution. – Yuseferi May 12 '20 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.