Better embed auth

Elliot Park · Friday Demos · January 31, 2025 · 2:27

Continuing the work to speed up embed auth and make every embedded dashboard faster.

Try it yourselfThe full week on docsadministrationembed

Transcript

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

  1. never overtime for demos if you guys had 24 hours of demos we would cheap shoting the video uh yeah so here's my embed dashboard there are many like it but this one is mine you guys have seen this a billion times uh the one thing I did want to highlight is that this URL you'll see is not the traditional embed URL login demo the one shot that we have uh currently or the standard s so embed logging this is using the two-step embed logging flow that um has been requested by med decision and I imagine will be requested by many others who are uh more security conscious and also just concerned about their embed login URLs being you know massive as they have begun to

  2. you know have begun to grow in size with like custom themes and connection roles and all the sort of functionality that we've been baking into embed logins um so just to kind of give a quick preview of the code you'll see that uh typically with the embed twostep flow you'll hidden API endpoint um which was really easy just because of all the work Cory's been doing for me to add uh which generates the embed session and you pass in all your parameters like you would with the standarded login flow and then from that post request you'll get back a session ID and that session ID can then be passed into a redeem session URL um and obviously uh because the second Redeeming the actual session

  3. UR uh is a you know get request that gets passed into the iframe or the resulting iframe you're going to want to have to sign it so uh probably going to want to build a like you know helper function in the SDK so customers don't have to worry about signing their own URLs um but you'll see that yeah this this flow is actually pretty standard pretty close to what we do right now um with generating Sone bed URLs but uh you you could see the potential obviously of like not needing to generate theur orl when you're actually on a given page you know generating it during an a user's login or you know during some other part of the app such that the actual Redemption

  4. of that session is much quicker or uh you know requires less leg work at the time of uh use so yeah I have a couple of small