types of api authentication
• Basic
○ Pre-emptive
■ If a service is configured to be pre-emptive,
it will not request credentials from a client even though it
requires it.
■ If a request doesn't contain credentials,
it will return 401 Unauthorized status code.
○ Challenged
■ When request reaches the API then API will tell
that it requires credentials then client will provide
credentials.
○ oauth --> types of authentication where keys and tokens
from 3rd party is used to authenticate. There are
2 types of oauth:
■ oauth1 à hard to implement
■ oauth2 à more secure
• Digest
○ It is more encrypted than basic. https...