This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using BlazorAdmin.Models; | |
namespace BlazorAdmin.Interfaces; | |
public interface IUserManagementService | |
{ | |
Task<CreateUserResponse> Create(CreateUserRequest user); | |
Task<GetUserResponse> Update(UpdateUserRequest user); | |
Task Delete(string id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.eShopWeb.Infrastructure.Identity; | |
using Microsoft.eShopWeb.PublicApi.UserManagementEndpoints; | |
namespace Microsoft.eShopWeb.PublicApi.Extensions; | |
public static class ApplicationUserExtensions | |
{ | |
public static UserDto ToUserDto(this ApplicationUser user) | |
{ | |
UserDto dto = new UserDto(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.DataAnnotations; | |
namespace BlazorAdmin.Models; | |
public class GetRoleMembershipRequest | |
{ | |
public GetRoleMembershipRequest(string name) | |
{ | |
Name = name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.DataAnnotations; | |
namespace BlazorAdmin.Models; | |
public class CreateRoleRequest | |
{ | |
[Required(ErrorMessage = "The Name field is required")] | |
public string Name { get; set; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-md-6 col-md-offset-2"> | |
<section> | |
<h3>Use another service to log in.</h3> | |
<hr /> | |
@{ | |
if ((Model.ExternalLogins?.Count ?? 0) == 0) | |
{ | |
<div> | |
<p> | |
There are no external authentication services configured. See this <a href="https://go.microsoft.com/fwlink/?LinkID=532715">article |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Export your WordPress content before running this script | |
# Set the output path | |
$sitePath = "PATH_TO_SITE_OUTPUT" | |
$siteUrl = "YOUR_SITE_URL" | |
# Parse the XML | |
[xml]$xml = Get-Content .\YOUR_WORDPRESS_EXPORT.xml | |
# $xml.rss.channel.item | Get-Member | |
foreach ($item in $xml.rss.channel.item){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Playwright; | |
using NimblePros.SuperSecretProject.FrontEndTests.PageObjects; | |
namespace NimblePros.SuperSecretProject.FrontEndTests; | |
internal class AuthenticatedPlaywrightDriver : IDisposable | |
{ | |
private IPlaywright? _playwright; | |
private IBrowser? _browser; | |
private IBrowserContext? _context; | |
public AuthenticatedPlaywrightDriver() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from azure.keyvault.secrets import SecretClient | |
from azure.identity import DefaultAzureCredential | |
keyVaultName = os.environ["KEY_VAULT_NAME"] | |
tenantId = os.environ["AZURE_TENANT_ID"] | |
secretName = "SecretPassword" | |
KVUri = f"https://{keyVaultName}.vault.azure.net" | |
# Breaking changes in 1.11.0 |