« first day (3167 days earlier)      last day (1764 days later) » 

user10864482
7:02 PM
@tahtoh well, JWT is a token format. OAuth is an authorization protocol that can use JWT as a token. I was more referring as implementing csrf instead of OAuth because your api is meant to be stateless and because of that session dont make much sense in that regard.
 
user10864482
gotta go, time fly
 
peace
thanks
 
7:14 PM
hey do you guys use the flex box model if you need to code html?
 
7:38 PM
I don't, but I like to just yeehaw html into a file. you probably want to do something more sophisticated
I don't even know what a flexbox is
 
i used it to create a simple imagegrid today
and i was wondering if that was an ok practice
if youre curious to read mroe
 
seems like a decent idea to me, but I'm no web dev
if I can do something without a lot of javascript and nonsense, it seems like a good route to me
 
8:14 PM
@Grace i finally found the problem grace.....
postman token request can't handle resource id
so it was working all along, just needed to manually send the api call
 
Oh, yeah, that'd do it
You can try putting a ?resource=[client id] at the end of your auth URL
 
that's what i was doing and what was causing the problem!
it has to be in the body!!
 
Ah, the old body shuffle.
 
8:33 PM
every tutorial showed putting in the head
or as part of the url
 
I imagine there's something in your web app where you can tell it where to look
maybe they assume you're using easyauth, I dunno
 
now i need to set it up so I can authorize api controllers differently then mvc controllers
 
8:49 PM
Hey anyone know how I can convert a model to a datatable?
 
9:01 PM
object.ToDataTable()
 
Is that supposed to work for a list?
I have a List<object> and need to convert it to a datatable for export to Excel using EPPlus
 
sounds like a pain in the ass, tbh
do you, like
know anything about the objects
 
Sure. I mean I can iterate through it manually and assign to table rows, maybe use reflection for the prop names first to create cols, or do it manually. But it seems like it should be common, no?
The object is just a class I created from the data model
 
9:22 PM
26
Q: Using Reflection to create a DataTable from a Class?

vwdewaalI've just learned about Generics and I'm wondering whether I can use it to dynamically build datatables from my classes. Or I might be missing the point here. Here is my code, what I'm trying to do is create a datatable from my existing class and populate it. However I'm getting stuck in my tho...

my first instincts would be something like:

- if you have column names, make a CSV file, then import that into Excel
- use an api that doesn't make you make a datatable like LinqToExcel
- https://docs.microsoft.com/en-us/office/open-xml/how-do-i might make it easier? I haven't used it
 

« first day (3167 days earlier)      last day (1764 days later) »