I have got both the password and code grant flows working with my Flask app, but it all feels a bit clunky.
I find the use of fetch_token
and update_token
in oauth.register to handle token timeout quite confusing, and I have found no examples of error handling. There is lots of clever implicit stuff going on, but the docs are dense, at least to me who is not too familiar with OAuth. Perhaps I'm not reading the docs the right way?
Just two details: I'm using fetch_access_token
for the password grant, but this is not documented in the API under the Flask section, and fetch_token
is apparently both a callback function and part of the API for some Clients but not others..
I could hash out each subject here I guess, question by question, but much better would be if somebody could point me to a more fleshed-out real-world example.
Any advice is welcome.