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
Manakah pernyataan dibawah ini yang salah mengenai JWT?
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 Wayground
10 questions
Nodejs: Security

Quiz
•
Professional Development
12 questions
Supporting macOS 1102

Quiz
•
Professional Development
11 questions
APAC March Spot On Process Quiz

Quiz
•
Professional Development
10 questions
Sec+ Quiz 2.0

Quiz
•
Professional Development
10 questions
Banca Digital

Quiz
•
Professional Development
14 questions
UDSA unit 1

Quiz
•
Professional Development
15 questions
Tally Prime Rel 4.0 (Dashboard Feature) Quiz

Quiz
•
Professional Development
10 questions
Games seru

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade