Full form of JWT
JSON web tokens
What is a JWT ?
an open standard used to share security information between two parties — a client and a server.
What do JWTs contain ?
Each JWT contains encoded JSON objects, including a set of claims.
How does JWTs make sure their set of claims are not altered ?
JWTs are signed using a cryptographic algorithm to ensure that the claims cannot be altered after the token is issued.
What is a disadvantage of using a JWT ?
it relies on only one key
What are the repurcussions of JWT relying on only one key
JWT uses only one key, which if handled poorly by a developer/administrator, would lead to severe consequences that can compromise sensitive information.
What is an OAuth ?
OAuth is an open standard protocol that provides secure authorization for third-party applications to access user data without requiring the user to share their credentials (i.e., username and password) with the third-party application.
OAuth Full form ?
Open Authorization
What security protocol can you use to bypass the need for 3rd party applications to store user credentials ?
use OAuth
What kind of convenience does OAuth provide ?
OAuth eliminates the need for users to create separate accounts for each application they use, making it easier and more convenient to use multiple applications.
How does OAuth provide more control to it’s users ?
OAuth gives users control over which applications have access to their data, and allows them to revoke access at any time.
How does OAuth provide a better user experience ?
With OAuth, users can easily authorize third-party applications to access their data without having to manually enter their credentials each time.
What is the advantage of OAuth being an “open-standard” ?
widely used and supported by many applications and browsers
5 advantages of using OAuth
4 cons of using OAuth
use cases of JWT
5 use cases of OAuth
What is a http only cookie ?
A HttpOnly Cookie is a tag added to a browser cookie that prevents client-side scripts from accessing data in that cookie.
What disadvantages would one face while using http only cookie ?
The problem with secure cookies is that they can be cracked with enough time. For this reason they are never considered good for high security.
Name 4 types of authentication methods
basic authentication, digest authentication, OAuth, and OpenID Connect.
Basic Auth vs Digest Auth
Basic authentication involves sending user credentials in plain text, while digest authentication uses a hashed message to authenticate users.
How do OAuth and OpenID connect work ?
OAuth and OpenID Connect use tokens to grant access to third-party applications or services.
What is CORS ?
Cross-origin resource sharing (CORS) is a browser mechanism which enables controlled access to resources located outside of a given domain.
Enlist the shortcomings in regards to CORS