当前位置:网站首页>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 
边栏推荐
- 转行做产品经理,如何挑选产品经理课程?
- Why did grayscale fall from the altar?
- 5G Massive MIMO的概念和优点总结
- Is the account opening of GF Securities safe and reliable? How to open GF Securities Account
- Is it suitable for girls to study product manager? What are the advantages?
- kdtree(kd树)笔记
- Ctfhub port scan (SSRF)
- MySQL and redis consistency solution
- Subclasses call methods and properties of the parent class with the same name
- Webapck packaging principle -- Analysis of startup process
猜你喜欢
随机推荐
C语言实现【三子棋游戏】(步骤分析和实现源码)
为什么这么多人转行产品经理?产品经理发展前景如何?
ctfshow-web355,356(SSRF)
C# Newtonsoft.Json中JObject的使用
Servlet 和 JSP 中的分页
Understanding of Turing test and Chinese Room
【LINGO】求无向图的最短路问题
Redisson utilise la solution complète - redisson Documents officiels + commentaires (Partie 1)
How to permanently configure local opencv4.5.5 for vs2019
[recommendation technology] matlab simulation of network information recommendation technology based on collaborative filtering
5G Massive MIMO的概念和优点总结
微软宣布开源 (GODEL) 语言模型聊天机器人
Introduction to spark (one article is enough)
Pourquoi tant de gens sont - ils devenus des gestionnaires de produits? Quelles sont les perspectives de développement des gestionnaires de produits?
Félicitations pour l'inscription réussie de wuxinghe
LeetCode+ 71 - 75
Apple账号密码自动填充
[the path of system analysts] Chapter 5: software engineering of double disk (reverse clean room and Model Driven Development)
JSP - 分页
AI视频智能平台EasyCVR设备录像出现无法播放现象的问题修复









