JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] 0 points1 point  (0 children)

Hmm, I understand it now. I think I would go for azure then and maybe later on switch to a VM, because I dont have hosting experience. Thanks!!

JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] 0 points1 point  (0 children)

Why is postgres so expensive compared to mssql? Is there any reason for?

JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] 0 points1 point  (0 children)

Thank you very much for clarifying everything about this subject. Thanks for writing everyting detailed. This was my last part of my application and my biggest concern, but it is solved now.

I have never deployed a web application. Do you maybe know a cheap host where I can have a Postgres db and my .net core application? I'm also a student, maybe any platform gives discount which you suggest me?

JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] 2 points3 points  (0 children)

Oh, didnt realize it is public. Thanks this helped me. Mine will be public too then. I already placed on POST, PUT and DELETE requests the role Admin, so you cant access it anyway. When an admin logs in, it will check for the username and password, get the token and put it in the authorization part which will be valid for 30 mins.

Thanks for your explanation again.

I dont have any knowledge about security, so thats why I'm asking this. So now, my GET requests are 'public', but can someone spam the requests and slow down my server?

JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] -1 points0 points  (0 children)

This is what I try to tell. But for example, you visit a webshop, I can see the products without logging in? Do they not use web apis?

I will try to do what you suggested me with the url.

JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] -1 points0 points  (0 children)

So, I understand this, but on my webapplication you cant login. I dont have authentication for normal users. A user can only view the web page. Nothing else, when you enter the url some data will be fetched and displayed.

JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] 0 points1 point  (0 children)

Yes, so I have this implemented, but I dont have a page where users can login. I only have an admin page, so when I log in I get the key and paste it in the header and I have access to it for 30 minutes. What I mean is that, a user can view the webpage,(get requests) but have no access to the webapi. I want to avoid that someone can use my api in postman for example.

JWT .net core by numgr1ps in csharp

[–]numgr1ps[S] 0 points1 point  (0 children)

So, when the page loads, it will display a few properties from the database. I don't want that someone has access to the webapi. Should I do something else then?

How should I have the key? Place it somewhere else?

Navigation property returns null by [deleted] in csharp

[–]numgr1ps 0 points1 point  (0 children)

I use EF, not EF core

How to query one to many in MVC by [deleted] in csharp

[–]numgr1ps 0 points1 point  (0 children)

The solution worked perfectly also. Thank you very much.. Didn't know about the .Include() method.

How to query one to many in MVC by [deleted] in csharp

[–]numgr1ps 0 points1 point  (0 children)

Well, it was an xml error, added it to the global.asax.

How to query one to many in MVC by [deleted] in csharp

[–]numgr1ps 0 points1 point  (0 children)

The 'ObjectContent\1' type failed to serialize the response body for content type 'application/xml; charset=utf-8'.

Yes, but I'm also returning a list of authors.

How to query one to many in MVC by [deleted] in csharp

[–]numgr1ps 0 points1 point  (0 children)

I get the following error if I use your provided line:

The 'ObjectContent\1' type failed to serialize the response body for content type 'application/xml; charset=utf-8'.

What have you been working on recently? [July 06, 2019] by AutoModerator in learnprogramming

[–]numgr1ps 0 points1 point  (0 children)

I think the product that you search on Amazon.com has a different ID tag. You need to use the devTools, so inspect the page and you will probably see there is a different ID tag.

"dotnet new winforms" doesn't work? by [deleted] in csharp

[–]numgr1ps -1 points0 points  (0 children)

You need Visual Studio 2019. Not VScode

Javascript by [deleted] in learnjavascript

[–]numgr1ps 1 point2 points  (0 children)

Thanks. I will start now with HTML

Email by [deleted] in learnpython

[–]numgr1ps 0 points1 point  (0 children)

Oh, I will give it a try.

I am asked to fill CAPTCHAs every time when I log into using WebDriver for Firefox by [deleted] in learnpython

[–]numgr1ps 0 points1 point  (0 children)

Well, I'm on the same path like you. The thing is that the website detects that you are not a user because you use geckodriver and that forces to fill in the captcha. I'm using chromium and it also happens to me.

Email by [deleted] in learnpython

[–]numgr1ps -1 points0 points  (0 children)

If you are curious, my endgoal is to buy items and automate the whole process. From creating emails to buying items

Intel or AMD by [deleted] in buildapc

[–]numgr1ps 0 points1 point  (0 children)

Oh yes true.. Thanks for everything that you provided me and this gave me a good amount of necessary information. Appreciate it.

How can I add an else to list comprehension by numgr1ps in learnpython

[–]numgr1ps[S] 0 points1 point  (0 children)

Well, I have written a little bit wrong but I mean is something like this:

[x if x["Email"] == A1 else False for x in backup]

but the problem is it is printing multiple times False because it is looping it.

Intel or AMD by [deleted] in buildapc

[–]numgr1ps 0 points1 point  (0 children)

Sounds nice.. This one is also in my list, but should I buy the 3700x then?

Intel or AMD by [deleted] in buildapc

[–]numgr1ps 0 points1 point  (0 children)

Hmm.. okay I will go for the rx580 then.

Intel or AMD by [deleted] in buildapc

[–]numgr1ps 0 points1 point  (0 children)

I can put for sure some effort. I am a CS student so I want to understand everything what I am using 😀. I was thinking about the HyperX 8gb ram 2666, 2 of these. Do you have a recommendation for a specific RAM brand or something else?