-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Started: Authenticate Users #207
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, from a couple of clues, I've inferred the auth involved here is verifying requests that come in via IAP. Standalone it seems like it may be worth explicitly calling that out, maybe a README?
@@ -0,0 +1,2 @@ | |||
vendor | |||
composer.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am on the fence because I don't want to be too strict on the requirements here, since it's a sample app. If it's strict to one set of packages, it could break on the next version (e.g. composer.lock
is for PHP 7.2 and so it fails on PHP 7.3). However, if we omit composer.lock
, the opposite could happen (e.g. a newer, incompatible version of a package is installed and breaks).
But if semantic versioning is observed, I think the second is not very likely, so I'd prefer to leave it out. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use lumen like the bookshelf example? It would be nice to wrap some of the functions in something that can contain a bit of state, so you don't need to create multiple guzzle clients per get_metadata request and can cache some of the static bits of information.
@dwsupplee I think Lumen would be a bit much for this sample, since it'd add several additional files and this is essentially a single endpoint. Although I do agree the |
Co-Authored-By: David Supplee <[email protected]>
Co-Authored-By: David Supplee <[email protected]>
Co-Authored-By: David Supplee <[email protected]>
Co-Authored-By: David Supplee <[email protected]>
Co-Authored-By: David Supplee <[email protected]>
Co-Authored-By: David Supplee <[email protected]>
Co-Authored-By: David Supplee <[email protected]>
…etting-started-php into authenticate-users
@dwsupplee Thanks again for your super thorough review! Have I addressed all your suggestions to an acceptable extent? |
Happy to help 😄. Just one last minor item - #207 (comment) (I think it got buried since the original comment was already addressed). |
@dwsupplee good catch!! |
See https://cloud.google.com/python/getting-started/authenticate-users