Repository navigation
Description
Which Page?
Whats missing?
Assuming the Team as expirienced Developers will know those Information or where exactly this is to lookup,
Please add Proper Information and / or Links
-
How and where should the Reader -> Developer of the App store
- the vulnurable user data
- Login credentials
- Application credentials to validate itself against an external api provider
These points are not expected to be satisfyed by clear typing those into the appsettings please!
Any other Information?
Add Information that might have hold you from sending a Pull Request fixing this:
I would add these Information, but to make sure this would be valid ones, I would need someone checking, because I am myself as Reader of this and ms docs a bit confused about the actual secure recommendation that should be followed. Maybe also to evaluate, it would be a good idea to not just randomly insert the information hidden in some sort of tutorial then a own page maybe on the auth section?
I found the following docs that could be right but to me the different names for them are sounding so close same that its hard to differ between:
- Uno != ASP.NET Core 🤔 does this create a problem for us?
- Secrets Manager should not get used
-> asp.net core docs answer: it can be used but its not supporting encrypted - Environment Variables but by default not encrypted
-> we could use doenvx but this is a npm tooling so we would be required to add a pre build command in csproj file
-> or we can use dotenv.net but this is also not encrypted I think with.envfiles could be an option using dotenv.net viaEnvironment.GetEnvironmentVariable(key)would do some research for this, check with their providers if we can get the Load instead of read enabled and add some how to then 👍 read does work but I don't think its supporting encryption likedotenvxfor npm -
dotnet user-secretsprovidedUser Secretsshould be the way to go if we not use azure KeyVault so far but the first one is not available on non windows if I am correct? -
dotnet jwt-secretsexchange to user-secrets - ASP NET JWT
-
Dotnet Docs about Security maybe this would more apply than 1 for non windows platforms like if we are developing on Linux? Which of those docs pages of this could or should be validly linked?
-
This for example is what ms docs comes up for our kioata extension, so it should get considered to expect us users of the docs to read those, as there is no alternative till this point of uno provided.
Those docs are telling us, that we need the authentication.azure package, so I would assume kiota would potentially need to contact api from oidc also or anything else requiring auth, we should add information about whats a uno proper replacement for this usecase?
Hoping there will be anyone checking on this and telling whats to advise per platform?
Activity
DevTKSS commentedon Jul 22, 2025
@kazo0 hey, what about this one microsoft is using:
Caution
Don't store app secrets, connection strings, credentials, passwords, personal identification numbers (PINs), private C#/.NET code, or private keys/tokens in client-side code, which is always insecure. In test/staging and production environments, server-side Blazor code and web APIs should use secure authentication flows that avoid maintaining credentials within project code or configuration files. Outside of local development testing, we recommend avoiding the use of environment variables to store sensitive data, as environment variables aren't the most secure approach. For local development testing, the Secret Manager tool is recommended for securing sensitive data. For more information, see Securely maintain sensitive data and credentials.
and to somehow clear that horrible infinity loop of at least I as beginner have no clue what they now advise us to use, I asked them for clarification about this, because that Warning quoted here is taken from their blazor docs, so they should update theirs also, to avoid such confusings for the basic consumer and uno does not reinvent microsoft then builds on top of it I think 👍
dotnet/AspNetCore.Docs#35794
and if they done (assuming them as maintainers of this things have to know what to use), I think it would be reasoned and make great sense if we could just reuse their recommendation of tooling and add simply a link to their advises.
What do you think about this idea?
But I, as not so familiar user of this stuff in platform related context, would then like the uno team to check if we as uno users might need some platform dependent information/link collection. Would this be possible?
[-][Doc][Enhancement][Authentication][Oidc] Add information about Proper app-secret and user credential handling per platform[/-][+][Doc][Enhancement][Authentication] Add information about Proper app-secret and user credential handling per platform[/+][-][Doc][Enhancement][Authentication] Add information about Proper app-secret and user credential handling per platform[/-][+][Auth][Doc][Enhancement] Add information about Proper app-secret and user credential handling per platform[/+]