Skip to content

Instantly share code, notes, and snippets.

View muhammadhassan149's full-sized avatar
🎯
Focusing

Muhammad Hassan muhammadhassan149

🎯
Focusing
  • Freelancer
  • Pakistan
View GitHub Profile
import React from 'react';
import {
pdf,
Document,
Page,
Text,
} from '@react-pdf/renderer';
import { saveAs } from 'file-saver';
const DocumentPdf = ({ someString }) => (
@DamienBraillard
DamienBraillard / ISimpleRoleProvider.cs
Last active March 11, 2025 14:21
Asp.Net Core simple role authorization with Windows Authentication
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
namespace DamienBraillard.AspNetCoreSimpleRoleAuthorization
{
/// <summary>
/// Defines the base functionality of the class used to provide applicative roles for a user when using the simple role
/// authorization.
/// </summary>