How can I avoid to have to re authorize manually

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

This topic has 3 replies, 2 voices, and was last updated 5 years, 2 months ago by Szabi – CodeRevolution.

Viewing 3 reply threads
  • Author
    Posts
    • #568


      fborges
      Participant
      Post count: 13

      After a few days of inactivity the refresh token seems to fail.

      and we receive an error like :

      { “error”: { “errors”: [ { “domain”: “global”, “reason”: “authError”, “message”: “Invalid Credentials”, “locationType”: “header”, “location”: “Authorization” }

      Does your plugin have the ability to keep re-authorizing it self without the need of re-authorizing?

      Thanks,

      Fabian

    • #569


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Hello,

      Yes, the plugin can reauthorize itself, however, I also saw that in some cases, YouTube API is not providing a refresh token on all manual auth requests (only on the first one you make for an account).

      Because of this, I made a plugin update to v2.5.3.2, – now the plugin is forcing the reauthentification, and getting a new refresh token each time for auth requests.

      Please update the plugin and let me know if the update helped.

      Regards,
      Szabi – CodeRevolution.

    • #577


      fborges
      Participant
      Post count: 13

      Hi Szabi,

      I updated the Plugin but the changes you made are not going to solve that issue.

      Actually your new code uses “Force” Approval Prompt! And the other changes has nothing to do with it.

      What I want is to avoid the user to have to be login and authorizing every time.

      Multiple users will use the site to publish to youtube channel and some of them have no clue about the youtube credentials!

      So in other words, I need your plugin to work without prompting the users to authorize.

      Regards,

      Fabian

       

    • #578


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      You don’t need to reauthorize the plugin each time, it is able to reauth itself after the token expiration.

      The forced reauth can be done only once, and afterwards, the plugin will work on it’s own.

      I added forced reauth because without this, no refresh token was returned by the api, and the plugin was not able to reauth itself.

      Now it should work.

      Regards.

Viewing 3 reply threads

The topic ‘How can I avoid to have to re authorize manually’ is closed to new replies.