当前位置:网站首页>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 
边栏推荐
- Illusory and simple screen raindrop post-processing effect
- 【微服务|openfeign】Feign的日志记录
- 2022制冷与空调设备运行操作国家题库模拟考试平台操作
- 在券商账户上买基金安全吗
- 浏览器本地存储
- 【深圳IO】精确食品称(汇编语言的一些理解)
- 1286_ Implementation analysis of task priority setting in FreeRTOS
- 组件的自定义事件①
- TodoList经典案例①
- [programming training 2] sorting subsequence + inverted string
猜你喜欢
随机推荐
Automated test platform (13): interface automation framework and platform comparison, application scenario analysis and design ideas sharing
Why did grayscale fall from the altar?
【分类模型】Q 型聚类分析
STM32F1与STM32CubeIDE编程实例-NEC协议红外接收与解码
Challenges faced by operation and maintenance? Intelligent operation and maintenance management system to help you
MySQL and redis consistency solution
Rclone configuring Minio and basic operations
[programming training 2] sorting subsequence + inverted string
【LINGO】求七个城市最小连线图,使天然气管道价格最低
Mysql与Redis一致性解决方案
C# Newtonsoft. Use of job in JSON
ctfshow-web351(SSRF)
The programmer of Beipiao posted a post for help late at night: I am lonely when my girlfriend is gone
Apple账号密码自动填充
广发证券开户是安全可靠的么?怎么开广发证券账户
How to draw a product architecture diagram?
浅谈CVPR2022的几个研究热点
Open source! Wenxin large model Ernie tiny lightweight technology, accurate and fast, full effect
Pourquoi tant de gens sont - ils devenus des gestionnaires de produits? Quelles sont les perspectives de développement des gestionnaires de produits?
Are there any practical skills for operation and maintenance management









