Skip to content

Instantly share code, notes, and snippets.

View ayeshN's full-sized avatar
🤡
Why So Serious ?

Ayesh Nipun ayeshN

🤡
Why So Serious ?
View GitHub Profile
using B2CUserManagement.Models;
using System.Threading.Tasks;
namespace B2CUserManagement.Interfaces
{
public interface IUserManager
{
Task CreateUser(B2CUser user);
using B2CUserManagement.Models;
using Microsoft.Graph;
using System.Threading.Tasks;
namespace B2CUserManagement.Interfaces
{
public interface IUserManager
{
Task CreateUser(B2CUser user);
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;
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
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddCors(options =>
{
options.AddPolicy(
"CorsPolicy",
builder => builder.AllowAnyOrigin()
.AllowAnyMethod()
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddCors(options =>
{
options.AddPolicy(
"CorsPolicy",
builder => builder.AllowAnyOrigin()
.AllowAnyMethod()
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)
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddCors(options =>
{
options.AddPolicy(
"CorsPolicy",
builder => builder.AllowAnyOrigin()
.AllowAnyMethod()
@ayeshN
ayeshN / en.json
Created December 10, 2020 09:48
English locale file
{
"Hi": "Hi",
"Welcome": "Welcome"
}
@ayeshN
ayeshN / sv.json
Created December 10, 2020 09:51
Swedish locale file
{
"Hi": "Hej",
"Welcome": "Välkommen"
}