Comments (7)
Ah, and I did have to enable G+. Sorry if that was not clear.
from confidant.
This is related to some info @damaestro added in the IRC channel. It's necessary to enable the people API for google auth to work, but that's not documented, along with most of the rest of that setup.
from confidant.
So I'm running into the same issue that Jon was having with authentication. I have the Google People API enabled for project / oauth2 client configuration.
While I'm working through figuring out what's going on I found this Google Site:
https://developers.google.com/+/web/api/rest/oauth#authorization-scopes
Which states the scopes you have configured are deprecated.
from confidant.
They are indeed deprecated. In the 1.1 branch we're using the updated scopes:
https://github.com/lyft/confidant/blob/1.1/confidant/authnz/userauth.py#L274-L285
That said, the deprecated scopes do work. What issue are you running into?
from confidant.
@ryan-lane I was having an issue getting the google suffix working. It was throwing a 500 error with "NoneType" attribute when checking against the email address:
AttributeError: 'NoneType' object has no attribute 'endswith'
I added the Google People
API to my Google Project and it wasn't fetching. So I searched all the google APIs for userinfo
usage. I switched to the Google+
API and it's now working.
As for the deprecated apis yeah Google says they will support them for a while. Just an FYI, good to see it's updated.
from confidant.
Just as an annotation: G+ does have to be enabled.
Note that the exception should ideally be trapped and the error message from google emitted. Something like checking for user.email being None
and using logging.error with result.user.data
would suffice, internal research shows.
from confidant.
Added some basic google auth docs: #84
from confidant.
Related Issues (20)
- Docker gunicorn process correctly starts up but doesn't run the app HOT 6
- Confidant strips newlines when submitting credentials through webpage HOT 6
- issue with SAML HOT 4
- Manage dependency versions with pip-compile-multi? HOT 1
- More Webhook support HOT 10
- Issue running confidant in development mode (encryption disabled) HOT 3
- TypeError: from_buffer() cannot return the address of a unicode object HOT 3
- TypeError: a bytes-like object is required, not 'str' HOT 4
- Confidant k8s HOT 1
- Fix python dist to work with toastedmarshmallow/webargs HOT 2
- Google Auth - not getting user email HOT 17
- Don't show "Add tag" UI if no server defined tags exist in the client config data HOT 1
- if HISTORY_PAGE_LIMIT isn't set, then the UI will fetch no history records HOT 1
- [Documentation]: USERS_FILE is compatible with multiple auth backends
- [Documentation]: Posting credentials states enabled is defaulted to true, but fails during POST
- Incorrect Google auth redirect URL when using proxy HOT 3
- problem HOT 1
- NoCredentialsError: Unable to locate credentials
- Dockerfile vs Dockerhub Image HOT 2
- Webhook Event Connection Timeout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from confidant.