开发者

How do you deauthorize using Apple's Authorization Services?

开发者 https://www.devze.com 2023-02-28 13:57 出处:网络
After preAuthorizing using AuthorizationCopyRights(...) how do I unauthorize it using Apple\'s Authorization Services?

After preAuthorizing using AuthorizationCopyRights(...) how do I unauthorize it using Apple's Authorization Services?

EDIT: Alright, I feel rather unintelligent now. I used to think that I shouldn't free the authorization reference and keep it for future use, but apparently I should make a new on开发者_Go百科e AuthorizationCreate(...) every time I want the user to enter credentials?


AuthorizationFree(authRef, kAuthorizationFlagDestroyRights)

as documented in the Authorization.h header

0

精彩评论

暂无评论...
验证码 换一张
取 消