Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

207 total results found

Cookies and Session

Introduction to JWT Chapter 0: Basic Authentication

Cookies🍪 Cookies คืออะไร?  Cookies คือ ไฟล์ข้อความขนาดเล็กที่ทางฝั่งเว็บเซิฟเวอร์ทำการสร้างเเละส่งเข้ามาเก็บไว้ที่ web browser ของผู้ใช้งาน โดยมันจะเกิดขึ้นเมื่อผู้ใช้มีการเข้าไปรับชมเว็บไซต์ต่าง ๆ ตัวอย่างของไฟล์ cookies เเล้ว cookies เนี่ยใช้เก็บอะไร? ...

Authentication methods

Introduction to JWT Chapter 1: Concept of Json Web Token

Method🔧 ต้องขอเกริ่นก่อนว่า การยืนยันตัวตน (Authentication) มันมีหลายวิธี โดย JWT ก็เป็นหนึ่งในวิธียืนยันตัวตนเเบบ Token-based authentication ในที่นี้จะขอยกตัวอย่าง 3 วิธีที่เราน่าจะคุ้นชินกัน 1. Password-based authentication วิธีนี้เป็นวิธีที่ทั่วไปเเละใช...

Json Web Token

Introduction to JWT Chapter 1: Concept of Json Web Token

JWT🔒 JWT คืออะไร? JWT หรือ Json Web Token คือมาตรฐานการเข้ารหัสข้อมูลใน token (RFC 7519) ที่เหมาะสำหรับการใช้ยืนยันตัวตนในเว็บเเอพพลิเคชั่นที่มีผู้ใช้จำนวนมาก อธิบายง่าย ๆ มันก็คือ token ที่เอาไว้ใช้ยืนยันตัวตนเวลาจะทำกิจกรรมบางอย่างบนเว็บไซต์นั่นเอง ตัวอย่...

JWT in Authentication process

Introduction to JWT Chapter 1: Concept of Json Web Token

How JWT works🔍 การยืนยันตัวตนด้วย JWT สถานการณ์จำลอง นาย A เป็น admin ของระบบร้านค้าเเห่งหนึ่งเเละต้องการที่จะ login เพื่อไปดูข้อมูลการซื้อ-ขายสินค้าในหน้า dashboard ของระบบ 1. นาย A ส่ง authenticated request ไปยัง Server 2. Server ได้ทำการยืนยันว่า นาย ...

CSC105 Backend: Authentication & Cookie

CSC105 Backend fundamental

From the last session, we all have done the API endpoint implementation using Node.js to do database operations from API calling. Did we spot some missing part of our API? How can we separate operations and permission based on each user? Authentication Mos...

IoT Lab - Basic & Setup

CS22 - IoT Lab

What is IoT? IoT stands for Internet of Things. It refers to the interconnectedness of physical devices, such as appliances and vehicles, that are embedded with software, sensors, and connectivity which enables these objects to connect and exchange data and al...

IoT Lab - ESP32 with Ultrasonic Sensor

CS22 - IoT Lab

The ultrasonic sensor uses sonar to determine the distance to an object. This sensor reads from 2cm to 400cm (0.8inch to 157inch) with an accuracy of 0.3cm (0.1inches), which is good for most hobbyist projects. In addition, this particular module comes with ul...

CSC105 Backend 27/4/23

CSC105 Backend fundamental

1. What is the Backend? Backend development (often called the “server-side” development), is the creation of everything that goes on behind the scenes of a website or application that the user can’t see. The backend normally consists of an application, server ...

IoT Lab - Humidity Sensor (D.I.Y guide)

CS22 - IoT Lab

The sensor used for measuring temperature and humidity of the surrounding environment. The box contains AM2302 DHT22 sensor which are the temperature and humidity which outout calibrated digital signal for the data. When you want to try using each sensor, t...

IoT Lab - Wi-Fi Connection

CS22 - IoT Lab

The controller board that we're currently using (ESP32) has built-in Wi-Fi adapter which able to 2.4GHz WPA Wi-Fi. Connecting Wi-Fi can extend more use cases of the board by connecting, sending and receiving data from the internet. In this workshop, we are go...

IoT Lab - Homebridge Setup

CS22 - IoT Lab

Introducing Homebridge, an Apple Homekit Gateway for simulating HomeKit compatible device.  In general, if you want a remotely-controllable device, you need an extraordinary price device that support Apple HomeKit and Google Home platform. The device need to b...

IoT Lab - Connect ESP32 with Homebridge

CS22 - IoT Lab

If you haven't setup the ESP32 microcontroller and Homebridge before, you should setup that first! Schematic – ESP32 with Humidity and Temperature Sensor and LED Lights Code #include "DHT.h" #include <HTTPClient.h> #include <WiFi.h> #include <WebServer.h> #...

CSC105 Backend: Cookie

CSC105 Backend fundamental

Cookie To learn more on what's cookie, just googling "what's web cookie". Next, let's see the cookie in action. What cookie a website stored Try to open any website in the browser. For example, https://sqlworkshop.bsthun.com/. Open DevTools windows (by...

IoT Lab - Basic & Setup

IoT Lab #2

What is IoT? IoT stands for Internet of Things. It refers to the interconnectedness of physical devices, such as appliances and vehicles, that are embedded with software, sensors, and connectivity which enables these objects to connect and exchange data and al...

IoT Lab - Humidity Sensor Example

IoT Lab #2

The sensor used for measuring temperature and humidity of the surrounding environment. The box contains AM2302 DHT22 sensor which are the temperature and humidity which outout calibrated digital signal for the data. Searching Guide When you want to try to ...

IoT Lab - Wi-Fi Connection

IoT Lab #2

The controller board that we're currently using (ESP32) has built-in Wi-Fi adapter which able to 2.4GHz WPA Wi-Fi. Connecting Wi-Fi can extend more use cases of the board by connecting, sending and receiving data from the internet. In this workshop, we are go...

IoT Lab - Calling HTTP Request

IoT Lab #2

Schematic – ESP32 with Humidity and Temperature Sensor and LED Lights Code #include "DHT.h" #include <HTTPClient.h> #include <WiFi.h> #include <WebServer.h> #define DHTPIN 25 // what pin we're connected to #define DHTTYPE DHT22 // DHT 22 (AM...

Repo Golang

ทำความเข้าใจ 0 to Hero Golang (แค่อ่าน ...

First Step Clone Repo Golang อันดับแรกก่อนที่จะเริ่มอ่าน Code เป็นก็ต้องมี code ซะก่อน ใส่ URL ตรงนี้เลยองค์ประกอบของหลังบ้านที่ควรรู้ จะเห็นว่า folder กับไฟล์งานนั้นเยอะมาก แต่จริงๆแล้วที่จำเป็นต้องดูจริงๆมีแค่  DB มันเป็น type struct ของ table ใน d...

การอ่าน func สำหรับ integration เบื้องต้น

ทำความเข้าใจ 0 to Hero Golang (แค่อ่าน ...

step 1 Find the Function  สมมุติว่าอยากจะทำการ integration login ก็ไปที่ Route login  step 2 Analysis the Function อันนี้คือสิ่ง request ที่ต้องการก่อนที่จะใช้ function login ได้. คือ function login ไม่ต้องรู้หรอกว่าทำงานยังไง รู้คือว่า มันคืนอะไรม...

What is Dio

How to use Dio ที่ไม่ใช่ ตัวละครจาก JoJo

What is Dio? Dio ไม่ใช่ตัวละครใน jojo แต่ Dio เป็นไคลเอนต์ HTTP ที่มีประสิทธิภาพสำหรับ Dart มีการสนับสนุนสำหรับตัวสกัดกั้น, การกำหนดค่าส่วนกลาง, FormData, การยกเลิกคำขอ, การดาวน์โหลดไฟล์ และการหมดเวลา และอื่น ๆ Flutter เสนอแพ็คเกจ http ที่ดีสำหรับการทำงานเครื...