Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Beau Lebens

    (@beaulebens)

    I haven’t seen/heard of anyone specifically handling this for MS OneDrive, so can’t give you a direct example I’m afraid.

    Have you checked out how the bundled Yahoo service does token refreshing? Not sure if that sort of approach might work for you on what you’re doing. You could also possibly override the request() method, and make it always attempt a token refresh before making an actual request (as long as it’s a relatively inexpensive process, otherwise the delays there could be too much to bear).

    HTH.

    Thread Starter Brent Maxwell

    (@thebrent)

    I was able to get it to work. I’ve put my importer class on GitHub.

    I copied some of it from the yahoo code, but there were some tweaks that I had to do. I’m able to call the maybe_reresh_token() function before any data access calls from my other importer plugin.

    Either way, it works; feel free to include it (or my other services from that github repo) into future releases of Keyring. Great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Refresh tokens’ is closed to new replies.