Matthew Blewitt retweeted
Alright, check this out!
I'm going to build a custom dashboard with supabase auth and a custom theme by "piecing together blocks from the Web".
1/n - Let's start by adding the dashboard block from shadcn/ui:
Matthew Blewitt retweeted
SSO (Single Sign-On) explained.
SSO can be thought of as a master key to open all different locks.ย It allows a user to log in to different systems using a single set of credentials.
In a time where we are accessing more applications than ever before, this is a big help to mitigate password fatigue and streamlines user experience.
To fully understand the SSO process, ๐น๐ฒ๐โ๐ ๐๐ฎ๐ธ๐ฒ ๐ฎ ๐น๐ผ๐ผ๐ธ ๐ฎ๐ ๐ต๐ผ๐ ๐ฎ ๐๐๐ฒ๐ฟ ๐๐ผ๐๐น๐ฑ ๐น๐ผ๐ด ๐ถ๐ป๐๐ผ ๐๐ถ๐ป๐ธ๐ฒ๐ฑ๐๐ป ๐๐๐ถ๐ป๐ด ๐๐ผ๐ผ๐ด๐น๐ฒ ๐ฎ๐ ๐๐ต๐ฒ ๐ถ๐ฑ๐ฒ๐ป๐๐ถ๐๐ ๐ฝ๐ฟ๐ผ๐๐ถ๐ฑ๐ฒ๐ฟ:
๐ญ) ๐จ๐๐ฒ๐ฟ ๐ฟ๐ฒ๐พ๐๐ฒ๐๐๐ ๐ฎ๐ฐ๐ฐ๐ฒ๐๐
First, the user would attempt to access the Service Provider (LinkedIn). At this point, a user would be presented with login options, and in this example, they would select "Sign in with Google".
๐ฎ) ๐๐๐๐ต๐ฒ๐ป๐๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป ๐ฟ๐ฒ๐พ๐๐ฒ๐๐
From here, the Service Provider (LinkedIn) will redirect the user to the Identity Provider (Google) with an authentication request.
๐ฏ) ๐๐ฑ๐ฃ ๐ฐ๐ต๐ฒ๐ฐ๐ธ๐ ๐ณ๐ผ๐ฟ ๐ฎ๐ฐ๐๐ถ๐๐ฒ ๐๐ฒ๐๐๐ถ๐ผ๐ป
Once the Identity Provider (Google) has received the request, it will check for an active session. If it doesn't find one, authentication will be requested.
๐ฐ) ๐จ๐๐ฒ๐ฟ ๐๐๐ฏ๐บ๐ถ๐๐ ๐ฐ๐ฟ๐ฒ๐ฑ๐ฒ๐ป๐๐ถ๐ฎ๐น๐
At this stage, the user will submit their login credentials (username and password) to the Identity Provider (IdP).
๐ฑ) ๐๐ฑ๐ฃ ๐๐ฒ๐ฟ๐ถ๐ณ๐ถ๐ฒ๐ ๐ฐ๐ฟ๐ฒ๐ฑ๐ฒ๐ป๐๐ถ๐ฎ๐น๐
The Identity Provider will then verify the submitted credentials against its User Directory (database). If the credentials are correct, the IdP will create an authentication token or assertion.
๐ฒ) ๐๐ฑ๐ฃ ๐๐ฒ๐ป๐ฑ๐ ๐๐ผ๐ธ๐ฒ๐ป ๐๐ผ ๐ฆ๐ฒ๐ฟ๐๐ถ๐ฐ๐ฒ ๐ฃ๐ฟ๐ผ๐๐ถ๐ฑ๐ฒ๐ฟ
Once the token or assertion has been created, the IdP sends it back to the Service Provider confirming the user's identity. The user is now authenticated and can access the Service Provier (LinkedIn).
๐ณ) ๐๐ฐ๐ฐ๐ฒ๐๐ ๐ด๐ฟ๐ฎ๐ป๐๐ฒ๐ฑ ๐๐๐ถ๐ป๐ด ๐ฒ๐
๐ถ๐๐๐ถ๐ป๐ด ๐๐ฒ๐๐๐ถ๐ผ๐ป
Since the Identity Provider has established a session, when the user goes to access a different Service Provider (eg; GitHub), they won't need to re-enter their credentials. Future service providers will request authentication from the Identity Provider, recognize the existing session, and grant access to the user based on the previously authenticated session.
SSO workflows like the above operate on SSO protocols, which are a set of rules that govern how the IdP and SP communicate and trust each other. Common protocols include Security Assertion Markup Language (SAML), OpenID Connect, and OAuth.
~~~
A big thank you to our partner Postman who keeps our content free to the community.
Last year Postman released long-awaited features that make API authentication much easier. Check it out: drp.li/api-authentication-z7โฆ
Matthew Blewitt retweeted
๐ฆ๐๐ฎ๐ฐ๐ธ ๐ข๐๐ฒ๐ฟ๐ณ๐น๐ผ๐ ๐๐ฟ๐ฐ๐ต๐ถ๐๐ฒ๐ฐ๐๐๐ฟ๐ฒ ๐๐ ๐ก๐ผ๐ ๐ช๐ต๐ฎ๐ ๐ฌ๐ผ๐ ๐ ๐ฒ๐ฎ๐ป ๐๐ ๐๐
In the recent interview with Scott Hanselman, ๐ฅ๐ผ๐ฏ๐ฒ๐ฟ๐๐ฎ ๐๐ฟ๐ฐ๐ผ๐๐ฒ๐ฟ๐ฑ๐ฒ, ๐๐ฒ๐ฎ๐ฑ ๐ข๐ณ ๐๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ๐ถ๐ป๐ด ๐ฎ๐ ๐ฆ๐๐ฎ๐ฐ๐ธ ๐ข๐๐ฒ๐ฟ๐ณ๐น๐ผ๐, revealed the story about the architecture of Stack Overflow. They handle more than 6000 requests per second, 2 billion page views per month, and they manage to render a page in about 12 milliseconds. If we think about it a bit, we could imagine they use some kind of ๐บ๐ถ๐ฐ๐ฟ๐ผ๐๐ฒ๐ฟ๐๐ถ๐ฐ๐ฒ ๐๐ผ๐น๐๐๐ถ๐ผ๐ป ๐๐ต๐ฎ๐ ๐ฟ๐๐ป๐ ๐ถ๐ป ๐๐ต๐ฒ ๐๐น๐ผ๐๐ฑ ๐๐ถ๐๐ต ๐๐๐ฏ๐ฒ๐ฟ๐ป๐ฒ๐๐ฒ๐.
But the story is a bit different. Their solution is 15 years old, and it is a ๐ฏ๐ถ๐ด ๐บ๐ผ๐ป๐ผ๐น๐ถ๐๐ต๐ถ๐ฐ ๐ฎ๐ฝ๐ฝ๐น๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป ๐ฟ๐๐ป๐ป๐ถ๐ป๐ด ๐ผ๐ป-๐ฝ๐ฟ๐ฒ๐บ๐ถ๐๐ฒ๐. It is actually ๐ฎ ๐๐ถ๐ป๐ด๐น๐ฒ ๐ฎ๐ฝ๐ฝ on IIS, which runs 200 sites. This single app is running on nine web servers and a single SQL Server (with the addition of one hot standby).
They also use ๐๐๐ผ ๐น๐ฒ๐๐ฒ๐น๐ ๐ผ๐ณ ๐ฐ๐ฎ๐ฐ๐ต๐ฒ, one on SQL Server with large RAM (1.5TB), where they have 30% of DB access in RAM and also they use two Redis servers (master and replica). Besides this, they have 3 tag engine servers and 3 Elastic search servers, which are used for 34 million daily searches.
All this is handled by a ๐๐ฒ๐ฎ๐บ ๐ผ๐ณ ๐ฑ๐ฌ ๐ฒ๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ๐, who manage to ๐ฑ๐ฒ๐ฝ๐น๐ผ๐ ๐๐ผ ๐ฝ๐ฟ๐ผ๐ฑ๐๐ฐ๐๐ถ๐ผ๐ป ๐ถ๐ป ๐ฐ ๐บ๐ถ๐ป๐ several times daily.
Their ๐ณ๐๐น๐น ๐๐ฒ๐ฐ๐ต ๐๐๐ฎ๐ฐ๐ธ is:
๐น C# + ASP. NET MVC
๐น Dapper ORM
๐น StaeckExchange Redis
๐น MiniProfiler
๐น Jil JSON Deseliazier
๐น Exceptional logger for SQL
๐น Sigil, a .Net CIL generation helper (for when C# isnโt fast enough)
๐น NetGain, a high-performance web socket server
๐น Opserver, monitoring dashboard polling most systems and feeding from Orion, Bosun, or WMI.
๐น Bosun, backend monitoring system, written in Go
Check the full interview in the comments.
#softwareengineering #programming #developers #softwarearchitecture #softwaredesign
Matthew Blewitt retweeted
I just launched CloudCatalog!
An open source tool to help you document your AWS architectures.
๐ Discover resources
๐ Document resources
๐ฅ Assign owners
โก๏ธ Powered by markdown
๐คฉ And more...
If you find it useful, a retweet would be awesome! โฅ๏ธ๐
cloudcatalog.dev/
Matthew Blewitt retweeted
Check this out! @heitor_lessa shares his latest thoughts on the lambdalith vs single-purposed function debate. It's interesting to see how his views have evolved over the years.
Give it a watch and let us know what you think!
youtube.com/watch?v=Pj7Gvl0Vโฆ
Nice to take a step back at look at the big picture
youtube.com/watch?v=nWTvXbQHโฆ
Chris Lattner: The Future of Computing and Programming Languages | Lex Fridman Podcast #131
2021 will mark my 10 years in software development. In these trying times if you're considering a new direction and have ever had any interest in working with software give me shout and we can sort a zoom.
1
Matthew Blewitt retweeted
Watch Vue creator @evanyou's live keynote from Vue Global 2020 where he announces the official release of Vue 3. buff.ly/32RhB52 #vuejs @vuejsamsterdam #frontenddeveloperlove
Shifted to this 6 months back out of necessity on a big project. Never looked back
Sttooooop telling people to organize their apps like:
/components/
Feature
/utils/
feature
Every company has to undo this shit at some point when it gets impossible to manage and turn it into:
/feature/
Component
util
/feature/
Component
util
Matthew Blewitt retweeted
Using option and shift with cursor keys in @code is magic.
Option+Cursor moves the line up and down - including proper indentation (see end of video).
Option+Shift+Cursor copies the line(s) above or below.
Getting used to this made me so much more effective.
Matthew Blewitt retweeted
This was 13 years ago. The turning point. I was broke as hell, jobless, fresh out of drug rehab with a new kid. I just started learning to code, but had no clue where I was going in life. I still had a feeling that everything would be ok. Always try and be hopeful for the future
Matthew Blewitt retweeted
Opposing corner radial gradients look softer than angled linear gradients:
#CSS
background-image:
radial-gradient(
circle at top right,
cyan, transparent
),
radial-gradient(
circle at bottom left,
deeppink, transparent
)
;
play codepen.io/argyleink/pen/ExKโฆ



























