Zoli
Zoli
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Thank you so much for helping, clearing it up. I thought i have a working system but you reflected on what to improve.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
The reason I thought document would be better approcach because one workout can have many exercises and one exercise can have many sets so if i store the exercises and sets in another table the sets table will exponentialy grow large. So i thought if i encapsulate all related data to the workout would solve this issue. Also that particlar exercise/set cannot be part of any othet workout.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
So you see as a relation db SQL would be better fit for this and not document?
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
No description
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Hmm just created a simplified data structure.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
No description
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
No description
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
So I have done the followings, lucky I did not need so much modification. I've added identity management to the system on the api, creating users in an SQL table along with access and refresh tokens that include expiration dates. Now, all API endpoints—except for Login and Register—require a valid token to access. When an endpoint is called, the system checks the token's validity and expiration. If the token is expired, it regenerates a new one and stores it in SecureStorage. The stored token is then passed in the header for subsequent requests. This setup functions seamlessly, ensuring token validity whenever the app starts and has an internet connection. If this seems like a solid approach, my main remaining question is about linking MongoDB documents to specific users. Passing the userId directly from the MAUI client to the API endpoint doesn't seem optimal. Instead, when accessing an endpoint like GetAllMyStudents (my documents are way more complex), should the API validate the access token and use it to determine the user's ID, then filter documents in MongoDB based on that user ID?
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Thanks for the links but my app is Maui native not Maui hybrid blazor.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
haha no need 😄
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Just to clearify and I understand correctly, Microsoft Entra will solve the issue that the api endpoints can be called only for the logged in users?
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Technically it is native, only it has a WebView XAML component like any other component (buttons entry etc.) "NET MAUI Blazor Hybrid (native, cross-platform) app, a Blazor Web App, and a Razor class library (RCL) that contains the shared UI (Razor components) used by the native and web apps."
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
I have worked with Maui Hybrid and it is a native app and inside there is a WebView component
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
It is exaclty the same, only instead of XAML as WPF it uses Html for the frontend.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
I think it does not matter if hybrid or native
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Yes it is my first app 😅 The app itself is ready now i am dealing this security stuff. (now i just pass the logged in user Id from maui to the api and return the result) Now i see its kinda wrong 😄
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
The user must login to use the app.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
First of all thank you for the feedback. I used MongoDb becase my models are not relationals. So i thought if I already use i can just create another collection for the users but probably its a big mistake. (i had already this in my mind) So from Maui side Registration and Login endpoints shall be accacable without any auth? The other endpoints to get the documents or create only avaiable for the authenticated users? As next step I need to add Microsoft Entry and Identity Manager to authenticate the users?
116 replies
CC#
Created by Zoli on 10/27/2024 in #help
How to get documents for specific user by Cloud Firestore?
So my question was mainy about each document has a property which is the user id of who created that document. When I want to fetch all document for the logged in user. Is it right to do the filter on the client side?
3 replies