
More Embedding
More user management and permissioning controls for building embedded URLs
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
uh I can I can give a quick demo um okay so I'm going to demo a couple of things that Elliot and I worked on uh the things at the beginning are all Elliot unfortunately he's not feeling great today so um yeah so this is the users table uh you can see for a little while we've had this ined partitioning I don't remember if I demoed it but if you go into a typical user you have all these options for control and you know you can control like uh different permissions on connections things like that um so one of the things Elliot did this week is if you look in embed user now all those controls are eliminated we have the option obviously to bring
them back if we want to um but for now since uh the embed SSO link strictly defines all the controls they're just not visible that's one uh let's talk about user attributes so another thing Elliot did was um see this is my user attribute table for my instance I have this attribute called team if I click in I can see that none of the other users have an attribute set here but this embed user has one and it's set to the warriors uh pretty sure Elliott's a Lakers fan sorry sorry Elliot up here we're warriors fans um and I can do a quick demo of this uh this working so just bear with me because I gotta kind of hack a couple things but um
you can see here I have this extra parameter user attributes and you all have seen that it's already set to the warrior so let's hook Elliot up and set it to the Lakers obviously this will be easier to do than manually hacking in the future um and if I go visit this link so the dashboard loads and if I go back now when I refresh this you see it's Lakers good job Elliot um what else can I ask a question on that Nate yeah go for it for the user attributes that you have in the URL there if if you passed through like does the user attribute have to be pre-created um in our system like through the UI or if you pass through a
new brand new attribute so like not team but I don't know company uh will we autocreate that on like the first time yeah we that around a bunch and for now what we settled on is um the admin has to go in and explicitly create the user attribute uh you know when you create a user attribute there are a bunch of settings you have to set and we felt like we want to start with a more controlled uh approach to begin with and then in the future you know we can make it so that the embed SSO link could Define user attributes um sort of dynamically and then like construct them and insert them into the system you could imagine like a case with like
an a AO integration where somehow you want to you know import a bunch of things from like your your uh samle o provider and convert them to user attributes and just have them like plug into Omni directly so we could do that in the future but for now tldr you have to uh create them manually first makes sense thanks yeah um there was one other one at least uh oh two other ones uh okay so I added this this new control here uh this is a bit techy but basically the HP spec allows you to Define this header called frame ancestors and this is something that um applies to all embeds not just embed SSO but uh it was one of the points of feedback
from our security audit and so basically what setting this says is um embedded content is only accessible uh when rendered inside of a domain specified by frame ancestors so here I have nothing set and I can um can show you I have this live embed this is just running on my local host and it's it's also pointing to my local instance uh and because I have nothing set here this page loads whoops wrong one this page loads fine I set this to like on the well let me just set it to something obviously notar I go back I get sad face and you were to open it says because it violates the frame ancestors Fubar and if I set it to like Local Host 7777
save it now we're back so this is actually we should highly recommend folks who are doing big embeds uh use this it's just another security measure and ensures that the embedded content will only ever um render on domains they control um and then I can rotate my embed Secret at will uh and then the last thing to I'm not going to demo this but um we started implementing an embed SDK and just to give a flavor about what that looks like this is uh this is actually on npm now um see if I can find it on the co Ed hey here it is so technically it's out there uh oh 40 downloads um and uh What it lets you do is you can import
this function looks like this and it will spit out the assed URL for you um so just makes it super easy to generate these things um right now I think it supports user attributes everything so um yeah so that's there this is just for JavaScript to be super clear we might want to support some other languages like census uh has a request to to have Ruby supported and um kind of have a couple different thoughts what I might end up doing is just creating an endpoint that serves this exact same functionality and instead of having every library or like having to write this logic in all the different languages we want to support we can just say like make an HTTP request to an endpoint
we control and we'll return to you a signed URL um okay that's it