The document proposes a shared authority based privacy-preserving authentication protocol (SAPA) for cloud computing. SAPA addresses the privacy issue that arises when a user challenges a cloud server to request access to another user's data, as the request itself could reveal private information. SAPA uses anonymous access request matching and attribute-based access control to determine if two users' access requests are mutually compatible without revealing either user's private access desires. It also employs proxy re-encryption so the cloud server can provide temporary shared access between authorized users. The protocol aims to simultaneously achieve data access control, authority sharing between compatible users, and protection of users' privacy during the access request process.