There are three kinds of authentication:
HttpBasicAuthclass): This method uses the WWW-Authenticate HTTP header to send the username and password for every request
QueryParamAuthclass): This method uses an access token passed as query parameter in the API URL
HttpBearerAuthclass): This method uses an access token that is obtained by the consumer from an authorization server and sent to the API server via HTTP bearer tokens
Yii supports all the methods mentioned, but we can also easily create a new one.
To enable authentication, follow these steps:
falsein order to make user authentication status ...