Eli Weinstock-Herman
"Having no problems is the biggest problem of all."
Taichi Ohno

Filtered Swagger docs for ASP.Net Core 2.0

August 21, 2018 ▪ technical posts
I have a set of APIs that I'm publishing with an application. Some of these API endpoints are designed to be publically accessible, while others are internal API endpoints or specifically designed for a front-end application to access. I want to easily include the public endpoints in my API docs without publishing details on the internal ones.
Continue reading

Adding User-Managed API Keys to ASP.Net Core 2 w/ Cosmos DB

April 24, 2018 ▪ technical posts ▪ posted on lessthandot.com

I’m building the foundation for an ASP.Net Core 2 site with Cosmos DB as the back-end store and want to build in the idea of user-manageable API keys. In the past two posts, I’ve added interactive registration and login to the application using built-in Cookie and Twitter middleware on top of custom authorization logic and Cosmos DB. In this one, we’ll be adding endpoints that require API Keys that can be created and revoked by the user.

While I started out with credentials stored directly in the LoginUser Document, in the prior post I decided to start treating authentication mechanisms ...

Continue reading

Adding Twitter Authentication to an ASP.Net Core 2 site w/ Cosmos DB

April 17, 2018 ▪ technical posts ▪ posted on lessthandot.com

I’m building a B2C website with Cosmos DB as the back-end store and starting with common elements like Authentication. In my prior post, we connected the Cookie Middleware with custom membership logic and a standard username/password login method. In this one, we’ll be extending the system to also allow users to register and login via a third party provider (Twitter).

In this post I’ll also start exploring User Authentications as a separate document collection, rather than as additional fields on my User document. I’ve noticed in several past systems I’ve built API keys and authentication mechanisms as properties on ...

Continue reading

Side Projects