--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHPe-5AuTEtML1QwBr79DLpqGBFLpAO9qrFt%2BPR%2BdwQUJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
AuthUtil.DB.getPathForUserProfile(firUser.uid).observe(.value, with: { (snapshot) -> Void in
if let user = AuthUser(snapshot: snapshot) {
NSLog("Profile present. Name: \(user.displayName)")
self.signInComplete(user)
} else {
NSLog("Profile NOT present.")
self.gatherUserData()
}
}) { (error) in
NSLog(error.localizedDescription)
}
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/343fc454-3373-4193-9686-38e2d71320d8%40googlegroups.com.
curl "https://<DATABASE_NAME>.firebaseio.com/users/ada/name.json?access_token=<ACCESS_TOKEN>"
// Read data from the Realtime Database, using the access token to
// authenticate the request.
request({
url: "https://<DATABASE_NAME>.firebaseio.com/users/ada/name/.json",
method: "GET",
headers: {
Authorization: "Bearer " + <ACCESS_TOKEN>
}
}, function(error, response) { ... });
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHOX8PBuemYG2FLSqw8YK9PvhPZShWAQTwN14WFSkobUKg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHOX8PBuemYG2FLSqw8YK9PvhPZShWAQTwN14WFSkobUKg%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_1u3YlMgGjs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZxNXw2zQK%3DwEBuqmRyroS8LBMztcZ7H_ijY7Efc%3DetsQ%40mail.gmail.com.
Great, that's really helpful! Thanks for passing on the discussion, and explaining what you're working on.I put together a blog post with some crappy illustrative code for handling communication with a Firebase Function from an iOS app in Swift, which works like a charm.Unfortunately I can't seem to make it communicate with myapp.firebaseio.com; I get a 401 status code with both the approaches I've tried. Specifically, neither the header "authorization": "Bearer: <mytoken>" nor the CGI param ?access_token=<mytoken> gets me anything but a 401, though I note that my token is in excess of 1024 characters.Thanks for your help -- even if nothing else ever comes of this thread, I can now authenticate with Firebase Functions over https, which is very nice.Thanks,
Bartholomew
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHOX8PBuemYG2FLSqw8YK9PvhPZShWAQTwN14WFSkobUKg%40mail.gmail.com.--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_1u3YlMgGjs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZxNXw2zQK%3DwEBuqmRyroS8LBMztcZ7H_ijY7Efc%3DetsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHO0JjqRnK%3DYt0PH8wzot8oyHshO%3Dk%3Dip%3D5r-ZjGnsm2gA%40mail.gmail.com.
curl "https://<DATABASE_NAME>.firebaseio.com/users/ada/name.json?access_token=<ACCESS_TOKEN>"
Want to put together a smallish repro of what you're doing? I'd be happy to test it and see if I can spot anything.On Mon, Aug 7, 2017 at 7:34 PM, Bartholomew Furrow <fur...@gmail.com> wrote:
Great, that's really helpful! Thanks for passing on the discussion, and explaining what you're working on.I put together a blog post with some crappy illustrative code for handling communication with a Firebase Function from an iOS app in Swift, which works like a charm.Unfortunately I can't seem to make it communicate with myapp.firebaseio.com; I get a 401 status code with both the approaches I've tried. Specifically, neither the header "authorization": "Bearer: <mytoken>" nor the CGI param ?access_token=<mytoken> gets me anything but a 401, though I note that my token is in excess of 1024 characters.Thanks for your help -- even if nothing else ever comes of this thread, I can now authenticate with Firebase Functions over https, which is very nice.Thanks,
Bartholomew
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHOX8PBuemYG2FLSqw8YK9PvhPZShWAQTwN14WFSkobUKg%40mail.gmail.com.--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_1u3YlMgGjs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZxNXw2zQK%3DwEBuqmRyroS8LBMztcZ7H_ijY7Efc%3DetsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHO0JjqRnK%3DYt0PH8wzot8oyHshO%3Dk%3Dip%3D5r-ZjGnsm2gA%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_1u3YlMgGjs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZydQQN7%3D3ATQ2QAQxhzOuH%3DH-_bS-EAA8_yDgCw6Hb2w%40mail.gmail.com.
Is there any such thing as a smallish repro when we're talking about authentication? :-)
...but I'm getting a 401 error, which I assume means the server doesn't think I've even tried to authenticate. I can send you the specific URL I'm using privately if that would help.
The access token I'm using is one I get from Auth.auth().currentUser!.getIDToken(...), but since it's over 1024 characters I'm pretty sure that isn't what I'm supposed to use. I've also tried putting in a header with "Bearer <token>", which works for Firebase Functions, but it doesn't do the trick here.
On Tue, Aug 8, 2017 at 8:15 AM 'Kato Richardson' via Firebase Google Group <firebase-talk@googlegroups.com> wrote:
Want to put together a smallish repro of what you're doing? I'd be happy to test it and see if I can spot anything.On Mon, Aug 7, 2017 at 7:34 PM, Bartholomew Furrow <fur...@gmail.com> wrote:
Great, that's really helpful! Thanks for passing on the discussion, and explaining what you're working on.I put together a blog post with some crappy illustrative code for handling communication with a Firebase Function from an iOS app in Swift, which works like a charm.Unfortunately I can't seem to make it communicate with myapp.firebaseio.com; I get a 401 status code with both the approaches I've tried. Specifically, neither the header "authorization": "Bearer: <mytoken>" nor the CGI param ?access_token=<mytoken> gets me anything but a 401, though I note that my token is in excess of 1024 characters.Thanks for your help -- even if nothing else ever comes of this thread, I can now authenticate with Firebase Functions over https, which is very nice.Thanks,
Bartholomew
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHOX8PBuemYG2FLSqw8YK9PvhPZShWAQTwN14WFSkobUKg%40mail.gmail.com.--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_1u3YlMgGjs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZxNXw2zQK%3DwEBuqmRyroS8LBMztcZ7H_ijY7Efc%3DetsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHO0JjqRnK%3DYt0PH8wzot8oyHshO%3Dk%3Dip%3D5r-ZjGnsm2gA%40mail.gmail.com.--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/_1u3YlMgGjs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZydQQN7%3D3ATQ2QAQxhzOuH%3DH-_bS-EAA8_yDgCw6Hb2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHaiWHMuPZBLftR2cB872TuW64Vkpg_aohAeXTC34iAiCX1hHA%40mail.gmail.com.