Posts

Showing posts from March, 2023

Oauth & Docker

Spring Boot: Dockerization Oauth https://speakerdeck.com/championswimmer/authentication-done-right-consuming-and-serving-oauth2-dot-0?slide=21 Identification -> Identifying the request uniquely(saying I am Venkat) Authentication -> registered identity(Proving with ID card) Authorization -> permission to resources(giving car key to another person) HTTP error 401 -> not authenticated 403 -> authenticated but NOT authorized Authentication via Authorization Services that don't save password. Rather it accepts/saves only phone and sends OTP. Service/app is authorized to read sms/email. Given I am authorized to read sms/email which indirect way of authentication. Single signon First party sso Google sites with google authenticator Third party sso Spotify using google authenticator Oauth  client/apps sends request to github(oauth provider) with client id & request uri oauth provider shows UI to end user to provide login page user authenticates & accepts the authoriz...

Fullstack

 How internet works Internet flows thru optical fiber cable (not thru satellites) cables are layed across seas In India most of cables are layed by TATA Why optical fiber cost is cheap what happens when you hit any site like www.scaler.com Browser contacts isp for DNS lookup to get ip address types of cache for lookup browser os router isp -> arranged as tree Look for DNS Do recursive search for website .com scaler.com www.scaler.com Resolution of DNS & get ip address(Name server is the server that has the ip address value for the website) nslookup scaler.com named server returns the ipaddress for the sitename Browser will do tcp/ip connection with server 3 way handshake client sends SYN packet to server SYN/ACK packet back to client send back ACK to server named server returns the ipaddress for the sitename When you register on Amazon route53, it provides a set of named servers. Those 4 named servers that you register across your domain.  Flow Domain(scaler.com) is map...