Skip to content

Instantly share code, notes, and snippets.

View nerdcules's full-sized avatar

Alan Seunarayan nerdcules

  • 06:55 (UTC +01:00)
View GitHub Profile
@nerdcules
nerdcules / Useful Information.md
Last active April 28, 2024 09:31
AAD OAuth2.0
@nerdcules
nerdcules / SecureAPI.md
Last active March 16, 2024 21:14
Securing API

Altering your .NET WebAPI to integrate Azure AD authentication and enriching user claims based on details from an internal API (EIP) involves several detailed steps. Below is a more extensive guide on how to achieve this:

1. Register Your WebAPI in Azure AD

First, ensure your WebAPI is registered in Azure AD:

  1. Sign in to the Azure portal.
  2. Go to Azure Active Directory > App registrations > New registration.
  3. Enter a Name for your API and specify the supported account types.
  4. Leave Redirect URI blank as it's not needed for a WebAPI.
@nerdcules
nerdcules / dev.md
Last active April 15, 2024 21:42
ARCS

Development/F-57061/US-63667/T-62825

dotnet user-secrets set eip:clientId 248052cd-239b-4703-aa8f-a7aefcab2f2f dotnet user-secrets set eip:clientSecret baJ8Q~WIGVEdgQbIoZnCHExCl6wdqrl.ngfRrbst dotnet user-secrets set eip:scope api://248052cd-239b-4703-aa8f-a7aefcab2f2f/.default dotnet user-secrets set eip:authUrl https://login.microsoftonline.com/1cabd5e8-e68a-4ad8-9a69-7f5f24e92af2/oauth2/v2.0/token dotnet user-secrets set eip:url https://appgw-ag-uks-eip-tst.uksouth.cloudapp.azure.com

policy/outwardPolicies?policyId=AA03AA524L31 var clientId = Configuration["Authentication:ClientId"];

@nerdcules
nerdcules / gp-operation.md
Created November 22, 2021 14:33
gp operation

‎‎​

@nerdcules
nerdcules / VMs.md
Created November 4, 2021 10:54
Azure Training

‎‎​

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.