Posts

Showing posts with the label C#

Amazon Cognito User Pool Admin Authentication Flow with AWS SDK For .NET

Image
Implementing the Amazon Cognito User Pool Admin Authentication Flow with AWS SDK For .NET offers a path to implement user authentication without management of a host components otherwise needed to signup, verify, store and authenticate a user. Though Cognito is largely framed as a mobile service, it is well suited to support web applications. In order to implement this process you would use the Admin Auth Flow outlined in the AWS produced slide below. This example assumes that you have already configured both a Cognito User Pool w/ an App, ensuring the "Enable sign-in API for server-based authentication (ADMIN_NO_SRP_AUTH)" is checked for that app on the App tab and that no App client secret is defined for that App. App client secrets are not supported in the .NET SDK. It is also assumed that a Federated Identity Pool is configured to point to the before mentioned User Pool. This auth flow bypasses the use of Secure Remote Passwor...

Getting Started with AWS Lambda C# Functions

For those of us that are .NET developers at heart, we have powerful tools for running serverless C# applications on AWS. AWS Lambda now officially supports .NET 10 as a managed runtime, providing long-term support (LTS) through November 2028. Modern C# support in Lambda has evolved beyond early .NET Core. Developers can now utilize C# File-Based apps , which eliminate much of the traditional boilerplate code. These functions typically publish as Native AOT (Ahead-of-Time) by default, offering up to an 86% improvement in cold start times by removing the need for JIT compilation at runtime. Prerequisites: Development Environment: Visual Studio 2022 (latest version) with the .NET 10 SDK installed. AWS Toolkit for Visual Studio: Install the latest extension from the Visual Studio Marketplace. It now includes Amazon Q Developer for AI-assisted coding and one-click publishing. Getting Started with the .NET CLI: The fastest way to scaffold a new function is using the...

Using Linqpad to Query Amazon Redshift Database Clusters

Looking for a quick and easy way to query an Amazon Redshift Database Cluster? I was and the first place I turned was to my favorite tool for this kind of thing, Linqpad . I was a bit dismayed to find that none has developed, that I could find, a Linqpad database driver for Redshift. Small note, there are a few Postresql options and Redshift is supposed to be Postresql compatible however, none of them seemed to work for Redshift. Giving credit to the author of this article describing the use of Linqpad for connections to MS Access, I made a few tweaks and boom, I have a working way to connect to and query Redshift. So in the pay it forward spirit, I thought I'd share. 2026 Driver Update: AWS is retiring the legacy 1.x ODBC driver on June 1, 2026. Ensure you have installed the Amazon Redshift ODBC Driver 2.x . Unlike previous versions, the x64 driver is now the standard requirement for modern versions of LINQPad. // PREREQUISITES: // (1) Copy and paste this entire b...

SharePoint Event Receiver Manager (2007 & 2010)

Image
*** UPDATE 12/31/2017: This Project Was Migrated From CodePlex to GitHub *** A while back I started looking for a better way to manage event receivers on my SharePoint servers and one thing lead to another until it became my pet project outside of the office. Before I started writing code I found a few things here and there but none of them were particularly polished and they left me wanting more. I started a project, SharePoint Event Receiver Manager (2007 & 2010) , to continue evolving my tool and I've been gradually adding to it ever since. I invite you, if you have trouble getting a handle on your event receivers, to give it a try and pass it along. Releases: Version 2 (Stable) [Released: Nov 28 2011] SharePoint 2007 & 2010 Version 1 (Stable) [Released: Mar 28 2011] SharePoint 2007 & 2010 [Legacy] Update: This tool is now fully host...