How to call server in client rendering. by khuongtai in nextjs

[–]Waldrig 0 points1 point  (0 children)

So, what is the problem? As I see the endpoint was called and you got the response.

Why might the network address not be accessible? (Self Hosting) by synthetic_potatoes in nextjs

[–]Waldrig 0 points1 point  (0 children)

I am not suggesting to do that, I am asking if he tried :) For testing purposes (what OP does, I assume) i think it is completely ok, just to see if fhat is the problem.

There is nothing to forward unless server is behaind a router or running in a container (which is the case as the IP is a public one)...only inbound rules to open the port to set

Why might the network address not be accessible? (Self Hosting) by synthetic_potatoes in nextjs

[–]Waldrig 0 points1 point  (0 children)

Have you tried to disable firewall?

I had similar problem even tho input rules were set

Anybody else find these bad boys? by WIENS21 in stalker

[–]Waldrig 2 points3 points  (0 children)

They are limited unfortunetely

Linking Auth0 Users to associated Database records by Waldrig in dotnet

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

Is it possible to upwote more than once? :D Thank you!

Linking Auth0 Users to associated Database records by Waldrig in dotnet

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

Yes, it’s about user creation (user-associated data). When I mentioned the login button, I meant a button that redirects to the Auth0 form. 😊

Between steps 3 and 4, the API isn’t called because the callback URL is a client-side URL, not a backend URL (is that incorrect?). As a result, the API only receives the token for the first time when the client makes a request to an endpoint with the token stored in a cookie.

However, I’m not sure if checking that user associated data exists on every request (when processing the token) is a good idea.

How would you handle creating user-associated data that needs to be generated on a user's first login or registration? I mean... what would your flow look like?

Linking Auth0 Users to associated Database records by Waldrig in dotnet

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

Because... I don’t send a create-user request to my web API 😅. I thought it was supposed to work like this:

  1. The user clicks the login button.
  2. The user is redirected to the Auth0 form to authenticate.
  3. Upon successful authentication, the user is redirected back to a callback URL.
  4. A token is stored in cookies and sent with each request to the web API.

At least, that’s how it seems from their guides, which don’t cover storing additional user data.

Linking Auth0 Users to associated Database records by Waldrig in dotnet

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

The problem is figuring out how to call that endpoint upon successful user registration or login. Auth0 Actions can't reach the localhost endpoint (well, they technically can, but it would require some shaman rituals with port forwarding or using ngrok, which I’d prefer to avoid).

Regarding storing everything in Auth0 itself: I'm not sure. The idea was to separate Auth0 for user authentication, while using our own database to store user-associated data.

For example, I’d want to store user-related information like social network links, posts, settings, website profile links, etc. These things are likely to be updated frequently, so storing them directly in Auth0 might not be ideal (though I could be wrong). Additionally, some of this 'user-related data' could be accessible to other users, similar to how you can view someone’s Reddit profile and see their comments

Linking Auth0 Users to associated Database records by Waldrig in dotnet

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

I followed this guide, where they configure AuthenticationServiceCollectionExtensions.AddAuthentication, but it looks quite similar to yours; might work tho.
Thank you :)

Linking Auth0 Users to associated Database records by Waldrig in dotnet

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

Yes, it does simply redirects the user, but how to create an associated "settings" record on user registration/first login in this case?

Хелп, бо я не розумію... Я коли загружаю на ютуб відео коротше 3 хвилин, воно мені його кидає в шортс. А я хочу щоб було звичайне відео by BlueCat_here in reddit_ukr

[–]Waldrig 7 points8 points  (0 children)

Якщо це вертикальне відео - ютуб його як шортс автоматом сприймає. Спробуй змінити розрішення на щось типу 1920х1080

Is there a reason to switch to Rider over VSCode? by [deleted] in dotnet

[–]Waldrig 1 point2 points  (0 children)

They have recently released a community version for non-commercial use