Authentication & Authorization Flashcards

1
Q

What is authentication and authorization?

A

Authentication is a process in which a user identifies itself and the application validates its identity.

Authorization is a process in which the application verifies if the user can perform certain action.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the most common types of authentication?

A

Basic (user, password)
API key
Token-based (JWT)
Multi-factor (MFA)
Certificate-based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What’s the difference between token based auth and sessions?

A

In token based, the token gets sent on each request in the Authorization header, the token contains all the information about the current session.

In session based auth, we have a session ID that gets sent in the cookies and the server checks if the session exists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly