This file contains 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 B2CUserManagement.Models; | |
using System.Threading.Tasks; | |
namespace B2CUserManagement.Interfaces | |
{ | |
public interface IUserManager | |
{ | |
Task CreateUser(B2CUser user); |
This file contains 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 B2CUserManagement.Models; | |
using Microsoft.Graph; | |
using System.Threading.Tasks; | |
namespace B2CUserManagement.Interfaces | |
{ | |
public interface IUserManager | |
{ | |
Task CreateUser(B2CUser user); |
This file contains 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 B2CUserManagement.Interfaces; | |
using B2CUserManagement.Models; | |
using Microsoft.Extensions.Options; | |
using Microsoft.Graph; | |
using Microsoft.Graph.Auth; | |
using Microsoft.Identity.Client; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using B2CUserManagement.Interfaces; | |
using B2CUserManagement.Models; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
namespace B2CUserManagement.Controllers |
This file contains 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
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllers(); | |
services.AddCors(options => | |
{ | |
options.AddPolicy( | |
"CorsPolicy", | |
builder => builder.AllowAnyOrigin() | |
.AllowAnyMethod() |
This file contains 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
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllers(); | |
services.AddCors(options => | |
{ | |
options.AddPolicy( | |
"CorsPolicy", | |
builder => builder.AllowAnyOrigin() | |
.AllowAnyMethod() |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace B2CUserManagement.Helpers | |
{ | |
public static class PasswordHelper | |
{ | |
public static string GenerateNewPassword(int lowercase, int uppercase, int numerics) |
This file contains 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
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllers(); | |
services.AddCors(options => | |
{ | |
options.AddPolicy( | |
"CorsPolicy", | |
builder => builder.AllowAnyOrigin() | |
.AllowAnyMethod() |
This file contains 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
{ | |
"Hi": "Hi", | |
"Welcome": "Welcome" | |
} |
This file contains 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
{ | |
"Hi": "Hej", | |
"Welcome": "Välkommen" | |
} |
OlderNewer