Open cancan101 opened 5 years ago
I don't really want to do that. Those things are rarely genuine or truthful and I don't see much need to compare ourselves to anyone else. It takes a second to skim each README and make up your own mind. We might want to explain a bit better what flask-Dance does in the README, but that's about it.
That's a shame; some sort of comparison (even if just admitting these are competing libraries) would be useful IMO.
It appears that:
flask-dance
depends on oauthlib
for the OAuth implemention; loginpass
uses its own (authlib
)loginpass
feels like a very bare-bones demo for authlib
, while flask-dance
has more configuration/options, documentation, quickstart apps, etc.Unfortunately both projects' README do not mention OpenID Connect, which is an extension of OAuth2 intended to be used for authentication, but I've verified that using loginpass
with Google does the OIDC "Authorization Code" Flow as described in Google's docs:
openid
scope, and a random nonce
.flask-dance
on the other hand appears to implement a plain OAuth2 (without the OpenID Connect extensions) flow, like loginpass' predecessor https://github.com/lepture/flask-oauthlib did.
@nickolay: your comparison feels accurate to me. Would you like to make a pull request to the docs
directory of this project, and add it to the documentation?
@singingwolfboy Thanks for confirming! I'm going to pass on making a PR for this, but if anyone else wants to reuse any part of my comment to make a proper PR, they should feel free to do so.
Thanks for mention loginpass. Yes, loginpass is a very simple wrapper around authlib.
@nickdirienzo
Unfortunately both projects' README do not mention OpenID Connect
No, loginpass readme "Features" section has:
It supports OAuth 1, OAuth 2 and OpenID Connect for now.
Apparently, loginpass is still in its early stage, and lacks of documentation.
As part of the README, it would be helpful to have a comparison section vs alternative libraries.
authlib/loginpass
seems the most relevant.