Is there a difference between authentication and authorization?

后端 未结 17 2320
囚心锁ツ
囚心锁ツ 2020-12-04 06:38

I see these two terms bandied about quite a bit (specifically in web-based scenarios but I suppose it\'s not limited to that) and I was wondering whether or not there was a

17条回答
  •  萌比男神i
    2020-12-04 06:57

    Authentication: verifying who a user is.

    To authenticate, the user provides credential information such as a username and password and if the credentials are valid, the user receives a token that can be sent in with future requests as verification of her authentication.

    Authorization: determining what a user is allowed to do.

    From the user’s perspective, a successful authorization takes place when she is able to send a request to access a system and do something (such as upload a file in the system) and it works.

    Authentication only verifies identity—it confirms that a user is who she claims to be. Authorization determines which resources a verified user can access.

提交回复
热议问题