Discussions
Accessing REST from simple .ascx control iPart
over 4 years ago by Jake Bound
I may have asked this question before, if so I apologise. Client is 20.2 self hosted. I'm writing a fairly simple iPart (C# control, not JS, not compiled DLL) and I'd like to use REST to access data (and ultimately write it back). I can do this using both security models, but the "get a token" requires username and password, and the JavaScript one uses a variable that isn't on the page yet (and is a more client-side thing anyway). I'm not pumped about storing or using a username/password anyway, doesn't seem like it should be necessary. This isn't a "how to use REST" question, this is a "how do I access REST without using either of the 2 existing security options if I don't want to store a username/password" question. Thanks in advance.