Skip to content
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

Add firebase auth support to endpoints sample. #96

Merged
merged 1 commit into from
Nov 2, 2016

Conversation

jeffmendoza
Copy link
Contributor

I couldn't find any example clients or docs for testing firebase auth in the Python or Go examples, so going with this until we have more docs on https://cloud.google.com/endpoints/docs/authenticating-users

@jeffmendoza
Copy link
Contributor Author

Fixes #32

@jeffmendoza
Copy link
Contributor Author

logging and language are failing, appengine/endpoints passes:

 bundle exec rspec
Randomized with seed 2282
Ruby Endpoints Sample
  handles Firebase Auth
  POST /echo renders message from request body
  GET /auth/info/auth0 renders user info
  handles exceptions by returning Swagger-compliant JSON
  GET /auth/info/googlejwt renders user info
  GET /auth/info/googleidtoken renders user info
Finished in 0.04967 seconds (files took 0.14035 seconds to load)
6 examples, 0 failures
Randomized with seed 2282

cc @remi @frankyn

@beccasaurus
Copy link
Contributor

Awesome! Taking a look...


before do
content_type :json
end

use Rack::Cors do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find with Rack::Cors 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@beccasaurus beccasaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

1 newline to add 😄

get "/auth/info/firebase" do
auth_info
end
options "/auth/info/firebase" do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can you add a newline above options "..." do so the handlers are separated by 1 newline?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@jeffmendoza
Copy link
Contributor Author

Updated

@beccasaurus beccasaurus merged commit 2e12f60 into master Nov 2, 2016
@beccasaurus beccasaurus deleted the jlm/endpoints-firebase-auth branch November 2, 2016 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants