
Lic. en Inf. Twits mayormente nerds, y algo de humor. Fanático del diseño web, pero un queso al hacerlo
Argentina
Joined June 2013
- Tweets1.3K
- Following203
- Followers79
- Likes935
Ignacio Jauregui retweeted
¿Quién no ha usado frases de Los Simpson para usar en tu vida cotidiana? ¡Aquí hay algunas! (Imágenes: @pictoline) #LosSimpson #LosSimpsons #Curiosidades #Memes
Ignacio Jauregui retweeted
El video que Julio Iglesias le hace una nota a Camilo Sesto y este imita perfectamente a Raphael no exist...
Si existe... se me cae la bombacha. Un trio de Cracks.
Ignacio Jauregui retweeted
Si vamos a usar la IA, que sea para este tipo de cosas 😂
¡Feliz Navidad! 🎄🎁
Ignacio Jauregui retweeted
Al final Linx-O no era ciego, miren como le relojea en culo a Cheetara! jajajaj!!!🤣
Escuchando charla de mi señora con mi niña de 3 sobre el regalo para el día del padre: según mi nena, yo voy a querer un muñeco de bluey. Me parece me están estafando, pero como no se de casitas de Bluey, mejor no opino.
34
Ignacio Jauregui retweeted
nigga standing there smiling like hes actually him 😭😭
This quoted post is unavailable.
Ignacio Jauregui retweeted
How to design a 𝐬𝐞𝐜𝐮𝐫𝐞 web API access for your website?
When we open web API access to users, we need to make sure each API call is authenticated. This means the user must be whom they claim to be.
In this post, we explore two common ways:
1. Token based authentication
2. HMAC (Hash-based Message Authentication Code) authentication
The diagram below illustrates how they work.
𝐓𝐨𝐤𝐞𝐧 𝐛𝐚𝐬𝐞𝐝
Step 1 - the user enters their password into the client, and the client sends the password to the Authentication Server.
Step 2 - the Authentication Server authenticates the credentials and generates a token with an expiry time.
Steps 3 and 4 - now the client can send requests to access server resources with the token in the HTTP header. This access is valid until the token expires.
𝐇𝐌𝐀𝐂 𝐛𝐚𝐬𝐞𝐝
This mechanism generates a Message Authentication Code (signature) by using a hash function (SHA256 or MD5).
Steps 1 and 2 - the server generates two keys, one is Public APP ID (public key) and the other one is API Key (private key).
Step 3 - we now generate a HMAC signature on the client side (hmac A). This signature is generated with a set of attributes listed in the diagram.
Step 4 - the client sends requests to access server resources with hmac A in the HTTP header.
Step 5 - the server receives the request which contains the request data and the authentication header. It extracts the necessary attributes from the request and uses the API key that’s stored on the server side to generate a signature (hmac B.)
Steps 6 and 7 - the server compares hmac A (generated on the client side) and hmac B (generated on the server side). If they are matched, the requested resource will be returned to the client.
Question - How does HMAC authentication ensure data integrity? Why do we include “request timestamp” in HMAC signature generation?
--
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/bbg-social
























