Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
فلسفه هر چیز، از خود آن چیز مهمتر است!
به بهانه شروع این دوره، کمی تیراندازی میکنم! و پیشاپیش عذرخواهی میکنم!
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_01
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤48👍9
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
انتخاب زبان برنامهنویسی!
😡 یک سؤال عجیب و غیر علمی!؟
کدام زبان برنامهنویسی بهتر است؟ سیشارپ یا پایتون؟
😊 یک سؤال علمی و درست؟
با توجه به زمان/هزینه/کیفیت و با توجه به محدودیتها و توانمندیهای زبانهای برنامهنویسی، برای فلان پروژه، بهتر است از چه زبان برنامهنویسی استفاده نماییم؟ سیشارپ یا پایتون؟
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_02
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤32👍9
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
انتخاب زبان برنامهنویسی!
- مسالهای به نام کارآموزی
- معرفی کل دورههای سیشارپ (#C) و تقدم، تاخر یادگیری آنها
- نقشه راه برای برنامهنویسان Full Stack / Front-End / Back-End
- چرا باید برای پروژههایی که Back-End آنها سیشارپ میباشد، از Blazor Web Assembly استفاده نماییم!
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_023
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤22👍9
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
ایجاد یک پروژه Blazor Web Assembly Template با دات نت نسخه ۸
Source Code:
https://github.com/Dariush-Tasdighi/Learning-Blazor-Web-Assembly-Security
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_04
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤17👍2
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
توضیحات مهمی در خصوص SSL
ایجاد صفحات لازم برای شروع Authentication
Source Code:
https://github.com/Dariush-Tasdighi/Learning-Blazor-Web-Assembly-Security
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_05
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤18👍5
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
Cheat Sheet:
- ClaimsIdentity
- ClaimsPrincipal
- AuthenticationState
- AuthenticationStateProvider
- RedirectToLogin.razor
NuGet:
Microsoft.AspNetCore.Components.Authorization
Source Code:
https://github.com/Dariush-Tasdighi/Learning-Blazor-Web-Assembly-Security
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_06
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤20👍8
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
Cheat Sheet:
@attribute [Authorize]
@attribute [Authorize(Roles = "R1")]
@attribute [Authorize(Roles = "R1, R2")]
@attribute [Authorize(Policy = "P1")]
@attribute [Authorize(Policy = "P1, P2")]
<AuthorizeView>
</AuthorizeView>
<AuthorizeView>
<Authorized>
</Authorized>
<Authorizing>
</Authorizing>
<NotAuthorized>
</NotAuthorized>
</AuthorizeView>
<AuthorizeView>
<AuthorizeView Context="innerContext">
</AuthorizeView>
</AuthorizeView>
Source Code:
https://github.com/Dariush-Tasdighi/Learning-Blazor-Web-Assembly-Security
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_07
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤21👍6
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
Cheat Sheet:
await System.Threading.Tasks.Task
.Delay(millisecondsDelay: 2000);
claim = new System.Security.Claims
.Claim(type: "LastName", value: "Tasdighi");
// "jwt" OR "googooli" OR "magooli" OR ...
var claimsIdentity =
new System.Security.Claims.ClaimsIdentity
(claims: claims, authenticationType: "googooli");
- دو دستور ذیل غلط هستند!
@attribute [Authorize
(Policy = "CanBuy, CanDelete")]
<AuthorizeView Policy="CanBuy, CanDelete">
</AuthorizeView>
- دستور ذیل کار نمیکند!
var claimsIdentity =
new System.Security.Claims
.ClaimsIdentity(claims: claims);
Source Code:
https://github.com/Dariush-Tasdighi/Learning-Blazor-Web-Assembly-Security
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_08
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤15👍5
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
ASP.NET Core WEB API + Blazor Web Assembly Custom Security
Cheat Sheet:
claim = new System.Security.Claims.Claim
(type: System.Security.Claims.ClaimTypes.Name,
value: "Dariush");
claim = new System.Security.Claims.Claim
(type: System.Security.Claims.ClaimTypes.Role,
value: "Administrator");
Name:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name
Role:
http://schemas.microsoft.com/ws/2008/06/identity/claims/role
var claims =
ParseClaimsFromJwtToken(jwtToken: jwtToken);
Source Code:
https://github.com/Dariush-Tasdighi/Learning-Blazor-Web-Assembly-Security
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_09
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤13👍6
Forwarded from DTX_LEARNING_ASP.NET_CORE_SECURITY (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
Blazor Web Assembly [Custom Security]
https://sadgan.com
Cheat Sheet:
<PackageReference Include="Blazored.LocalStorage" Version="4.4.0" />
<PackageReference Include="Blazored.SessionStorage" Version="2.4.0" />
@inject Blazored.LocalStorage.ILocalStorageService storageService
@inject Blazored.SessionStorage.ISessionStorageService storageService
await storageService.SetItemAsync
<string?>(key: "Value", data: Value);
await storageService.SetItemAsStringAsync
(key: "Value", data: Value);
await storageService.SetItemAsStringAsync
(key: nameof(Value), data: Value);
Value = await
storageService.GetItemAsync<string?>(key: "Value");
Value = await
storageService.GetItemAsStringAsync(key: "Value");
Value = await
storageService.GetItemAsStringAsync(key: nameof(Value));
Source Code:
https://github.com/Dariush-Tasdighi/Learning-Blazor-Web-Assembly-Security
#ASP_NET_CORE_WEB_API #BLAZOR #WEB_ASSEMBLY #SECURITY #CUSTOM_SECURITY #CUSTOM_SECURITY_NEW_SERIES #CUSTOM_SECURITY_NEW_SERIES_10
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤13👍10