Embedded Authentication

Friday Demos · October 13, 2023 · 8:10

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. so okay so if I go to my admin page you'll see there's now this new embed Tab and we need to do some lightweight styling on here which actually Elliot who's uh out today he's already done some of this and there's some other goodies that are coming but I'll wait till uh he's back to demo them so I generate this secret and now I can go to this super I'm grab this guy and go to this super secret URL generator and then Nate just going to hack this URL real quick delete all of that um cool so now open incognito tab just to prove everyone not logged in grab that URL boom I'm logged in so that's a full endend demo of Ed SSO woohoo

  2. uh wait there's a couple more things so now I go back to the users tab as an admin in my logged in session this other window and I can see there is this new embed user who just logged in this is going to be changed a bit but right now they're just regular users so in theory we'll be able to upgrade them um to actual users similar to how we handle the schedule only users with the scheduler um what else you go to Firebase um you can see uh so you can see the embed users are being logged in Firebase as actual users some of these are these blank ones in particular like test requests but the request I just made used um this guy

  3. uh and then the thing I've been working on which I'm a little hesitant to demo but let me see if I can make it work okay so there are some problems with this right now that I need to think through today but I've yesterday I hacked together this optional email pram which is sort of required to actually upgrade uh embed users to full-fledged users so let's see what happens if I do this back to my thing let's just close that create a whole new incognito tab all right so logged in again everything's normal I go back here uh now you can see instead of this um placeholder embed user email there's actually like a user with a real email address um and then if I

  4. go up to Firebase maybe I've already used my real email address but if I've used my personal email address in here it's just connected to whatever my Firebase personal email is um uh I I suppose what I could do is I could say like so this is just creating a new it's going to create a new Firebase user basically there we we go so tldr here is like it's all working and end um we need to do some position uh permission massaging is work that I'm hoping to do today it's logging in Firebase So in theory we get the full Suite of controls for managing these Firebase logins um it's doing the actual URL signing this endpoint is um pulling out that embed key I

  5. generated and then signing the URL for you uh and so we're doing all the validation and I guess I can demo that super quickly by saying like so I've already used this URL so we should get a we should get a nons error um I could do things like by change the nons uh I will get a signature error because the as part of the signature um I do something like toop off part of the content well let's see if I do so this is now correctly signed but has an incorrect content path oh no idea what just happened there but it technically it's supposed to uh like maybe my server crashed it failed closed as long it failed closed you know too many redirects

  6. to many redirects um you know what it's probably because I have session cookies now the nonsense used come on oh too many redirects well believe me there is actually like a an error that uh pops up when the content path is not valid so um yeah so I'd say it's like in a good shape and I think next week we just need to set up a testing session for people to hammer on it and then we'll probably find a bunch of weird cases where we didn't we didn't think about how like an embed uh user entry was being created in the databas the database um but other than that I think it's pretty close to being good for uh a customer to start experimenting with

  7. is awesome hey Nate one question um just to make sure I understood how that was all working um you generated the secret in the UI and then you hit that generator URL but I noticed that the secret was not in the URL that you were using to gener like was not in the stuff you passed is that because it's looking it up on the back end uh yeah that generator URL is not necessarily meant to go in production it was a a thing I hacked together to show Elliot the algorithm and also to make it way easier for me to generate URLs to test locally got it in production that secret that you generated in the UI would be part of some requests to generate

  8. the um the SSO URL or in Theory they could also just do it themselves by creating like a a signature is that right uh correct yeah cool um one other question uh should we try to get the pentesters to hack on this uh this functionality next week will it be sort of baked enough then uh yeah we could ask them to take a pass cool we could I mean we'll we'll kind of have to see how much time they have Rel to the things we're asking them to look at but maybe we could sort of prepare them to look at it later in the week too yeah that sounds great cool