question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace Flask-OAuthlib with Authlib

See original GitHub issue

cg is using Flask-Dance and Scout is using Flask-OAuth to handle oauth requests. The latter has been abandoned in favour of Flask-Dance: https://github.com/mitsuhiko/flask-oauth

The problem that arises is that Flask-Oauth requires oauthlib<3.0.0 but Flask-Dance’s requirement requests-oauthlib requires oauthlib>=3.0.0. https://github.com/mitsuhiko/flask-oauth/blob/master/setup.py#L31 https://github.com/requests/requests-oauthlib/blob/master/requirements.txt#L2 Welcome to dependency hell! 😃 What are the consequences? Well, for cg it means that all tests are failing unless we take scout-browser away as a dependency.

After investigating this (https://medium.com/knerd/the-nine-circles-of-python-dependency-hell-481d53e3e025), a solution is that scout would upgrade to Flask-Dance at some point. Another is to speed up the uncoupling of cg and scout so you don’t have to upgrade.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
northwestwitchcommented, Jun 11, 2020

I’ll start to have a look at this one today

1reaction
ingkebilcommented, Jan 17, 2019

Uncoupling of scout and cg has not even started yet 😉

The temporary solution to get cg to work again is to remove scout-browser as a dependency and install it separately before we install cg. Fixed here: https://github.com/Clinical-Genomics/servers/pull/55

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask OAuth Client — Authlib 1.2.0 documentation
Flask OAuth client can handle OAuth 1 and OAuth 2 services. It shares a similar API with Flask-OAuthlib, you can transfer your code...
Read more >
Replace flask-oauthlib with authlib · Issue #4685 - GitHub
Successfully merging a pull request may close this issue. Refactor OAuth provider code and switch from Flask-OAuthlib to Authlib ThiefMaster/ ...
Read more >
Migration guide flask-oauthlib to authlib - Stack Overflow
I'm trying to migrate a legacy app that uses Flask-OAuth to authlib. The documentation of authlib is fairly decent, but what would be ......
Read more >
Flask-OAuthlib — Flask-OAuthlib 0.9.5 documentation
Flask -OAuthlib is designed to be a replacement for Flask-OAuth. It depends on oauthlib. ... Warning. Please use https://github.com/lepture/authlib instead.
Read more >
Flask-OAuthlib - PyPI
You SHOULD use https://github.com/lepture/authlib instead. Flask-OAuthlib is an extension to ... On the client site, it is a replacement for Flask-OAuth.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found