Manakah pernyataan dibawah ini yang salah mengenai JWT?
Flask API Lesson 4

Quiz
•
Professional Development
•
Professional Development
•
Hard
Yusuf Rizal
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
JWT dilewatkan diantara user dan server untuk autentikasi
JWT adalah singkatan dari JSON Web Token
JWT dibagi menjadi 3 bagian yang dipisahkan dengan tanda titik diantaranya
JWT adalah teknologi untuk enkripsi
2.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Jika sebuah username atau password dinyatakan salah ketika proses login, maka kode status HTTP manakah yang muncul?
404 NOT FOUND
401 UNAUTHORIZED
403 FORBIDDEN
400 BAD REQUEST
3.
MULTIPLE CHOICE QUESTION
10 sec • 7 pts
Manakah dibawah ini merupakan kode untuk membentuk suatu access token?
create_access_token(password)=user.password
create_token(identity=user.id)
create_jwt_token(password=user.password)
create_access_token(identity=user.id)
4.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Metode manakah yang digunakan untuk mengambil identity dari token?
get_jwt_identity()
get_jwt_id()
jwt_get_identity()
identity pada token bersifat encrypted, sehingga tidak dapat diakses
5.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Kode manakah yang digunakan pada header authorization untuk menjalankan autentikasi?
Digest
Basic
Bearer
HOBA
6.
MULTIPLE CHOICE QUESTION
10 sec • 7 pts
Manakah metode yang digunakan untuk membatasi akses endpoint terhadap user yang telah login?
@jwt_required()
@jwt_optional
get_jwt_identity()
get_jwt()
7.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Manakah metode untuk membuat refresh token?
create_refresh_token(password=user.password)
create_refresh_access_token(identity=user.id)
create_refresh_token(identity=user.id)
create_access_token(identity=current_user, fresh=True)
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
4TI WWW + Internet security (quiz)

Quiz
•
Professional Development
10 questions
AWS IAM

Quiz
•
Professional Development
15 questions
Microsoft 365

Quiz
•
Professional Development
12 questions
Linux Practice Quiz 4

Quiz
•
Professional Development
14 questions
The Internet

Quiz
•
6th Grade - Professio...
12 questions
Linux Practice Quiz 2

Quiz
•
Professional Development
6 questions
Testing SML Search Engine

Quiz
•
Professional Development
10 questions
Nodejs: Authentication with JWT

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade