当前位置:网站首页>Apple account password auto fill
Apple account password auto fill
2022-07-01 07:20:00 【Julie^_^ JuneLee】
One 、 solve the problem
in order to app Login process user experience problems , Record and automatically fill in the password of the user's login account , Fast... For users 、 A convenient way to log in , Let the user select an account to fill in the account password
Two 、 Overview of new technologies
This feature has been available for a long time , stay WWDC17 On , Apple released iOS11, Which brings App The password is automatically filled in this new API. The implementation of this function can make it more convenient for users to manage passwords , It's easier to login on our app .
Automatic password filling simplifies iOS Application and web page login and account creation tasks . Just a few clicks , Your users can create and save new passwords or log in to existing accounts . Users don't even need to know their passwords ; The system handles everything . This convenience increases the likelihood that users will complete the application login or registration process and start using your application faster . Besides , By encouraging users to choose a unique strong password , You can improve the security of your application . By default , Automatic password filling saves the user's login credentials in their current iOS On the device . iOS have access to iCloud Keychain Securely synchronize these credentials on the user's device . Password auto fill only recommends credentials for the application's associated domain , And the user must use... Before accessing these credentials Face ID or Touch ID Authentication . Password autopopulation also provides credentials for third-party password managers that implement the credential provider extension .
WWDC17 Related video address :Introducing Password AutoFill for Apps
3、 ... and 、 Benefits
Use the technology , Will remember the user's account and password , Allows users to create and save new passwords or log in to existing accounts , Solve the login problem caused by the user who cannot remember the password or enters the wrong password , Greatly improve users' use of app Convenience and fluency .
Four 、 risk assessment
The technology was officially launched by apple , And explain it at the Developer Conference , The technology is mature enough , And there are many in the market APP Or the website has implemented this function , There is no risk at present .
5、 ... and 、 Detailed instructions
1、 Project configuration
Open... In the project Associated Domains, Or directly at https://developer.apple.com/ Log in to your developer account , Then enter Certificates, Identifiers & Profiles, Choose your Identifiers, Click edit , Check Associated Domains
Click the Add button to directly add a webcredentials:example.com, The official format is : <service>:<fully qualified domain>:<port number> . And in the picture webcredentials It is a service for web pages and applications to share certificates , As follows :
applinks: Universal link service
webcredentials: Web pages and applications share certificate credential Services
activitycontinuation:HandOff service
If the website needs to adapt example.com Subdomain name of , Then for .example.com , And ensure that every addition should have **webcredentials: ** Head .
2、 Server configuration
Create a file called apple-app-site-association Of json file ( Don't add json suffix ), Then fill in the following information :
- TeamId by , The developer account of the project TeamId, You can check it on the developer account
- BundleId by , The project Bundle identifier, View on the project
{"webcredentials":{
"apps": ["$TeamId.$Bundle id" ]}
}
And then put this json Put the file in the root directory of the server domain name , perhaps .well-known Below directory , As long as access is available
Then the server personnel give us the domain name we visit , We put its domain name , Add to the above Associated Domains in , The format is
webcredentials:$ domain name , such as webcredentials:api.yolanda.hkapp Set screenshot 
3、 Code settings
Will login the registered account and password UITextfield Of textContentType Set to username perhaps emailAddress、password
And then run the project , See the effect
1、 function app, Enter account number and password , Click login , After logging in , Whether to save the password will pop up 
2、 After clicking save , Log out , On the login page , Click on the account and password input boxes , The saved account and password will pop up on the keyboard , After clicking , Carry out facial appearance Id Or after fingerprint recognition , Automatically fill in the account and password 
3、 After changing the password , Update the password reminder of the original account
Manually set the account and password saving code
NSString *server = @"oversea-sit.yolanda.hk";
NormalUser *loginUser = [[UserTool sharedUserTool] getLoginUser];
SecAddSharedWebCredential( (**__bridge** CFStringRef)server, (**__bridge** CFStringRef)loginUser.email, (**__bridge** CFStringRef)_newPwdTextField.textField.text, ^(CFErrorRef **_Nullable** error) {
});
Then the system will pop up a pop-up box to confirm whether to update the password saved by the original account , Click update password , After logging out , The filled password is the modified password 
边栏推荐
- STM32F1与STM32CubeIDE编程实例-NEC协议红外接收与解码
- Summary of the concept and advantages of 5g massive MIMO
- 【Flutter 问题系列第 72 篇】在 Flutter 中使用 Camera 插件拍的图片被拉伸问题的解决方案
- 【分类模型】Q 型聚类分析
- 微软宣布开源 (GODEL) 语言模型聊天机器人
- Operation and maintenance management system, humanized operation experience
- redisson使用全解——redisson官方文档+注释(上篇)
- 在长城证券上做基金定投安全吗?
- [image processing] image histogram equalization system with GUI interface
- 5G Massive MIMO的概念和优点总结
猜你喜欢

redisson使用全解——redisson官方文档+注释(上篇)

C# 读写自定义的Config文件

Redisson utilise la solution complète - redisson Documents officiels + commentaires (Partie 1)

【电气介数】电气介数及考虑HVDC和FACTS元件的电气介数计算

JSP - paging
![C language implementation [Sanzi chess game] (step analysis and implementation source code)](/img/3b/d32b46292ed20f31a6e1db97349df1.png)
C language implementation [Sanzi chess game] (step analysis and implementation source code)

如何进入互联网行业,成为产品经理?没有项目经验如何转行当上产品经理?

DC-4 target

C语言实现【三子棋游戏】(步骤分析和实现源码)

Unity2021-Scene视图中物体无法直接选中的解决办法
随机推荐
C# Newtonsoft.Json中JObject的使用
Is it suitable for girls to study product manager? What are the advantages?
AI视频智能平台EasyCVR设备录像出现无法播放现象的问题修复
【推荐系统】美团外卖推荐场景的深度位置交互网络DPIN的突破与畅想
Apple账号密码自动填充
How to choose a product manager course when changing to a product manager?
Code practice - build your own diffusion models / score based generic models from scratch
[lingo] solve quadratic programming
开源了!文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
Ctfhub port scan (SSRF)
ctfshow-web351(SSRF)
1286_FreeRTOS的任务优先级设置实现分析
在长城证券上做基金定投安全吗?
1286_ Implementation analysis of task priority setting in FreeRTOS
ctfshow-web354(SSRF)
ctfshow-web351(SSRF)
[chapter 72 of the flutter problem series] a solution to the problem that pictures taken in the flutter using the camera plug-in are stretched
ctfshow-web355,356(SSRF)
[FPGA frame difference] FPGA implementation of frame difference target tracking based on vmodcam camera
2022电工(中级)复训题库及答案