当前位置:网站首页>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
边栏推荐
- Solution to the problem that objects in unity2021 scene view cannot be directly selected
- Is it suitable for girls to study product manager? What are the advantages?
- 电脑有网络,但所有浏览器网页都打不开,是怎么回事?
- EasyNVS云管理平台功能重构:支持新增用户、修改信息等
- Rclone configuring Minio and basic operations
- ctfshow-web355,356(SSRF)
- 组件的自定义事件②
- 开源了!文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
- Summary of the concept and advantages of 5g massive MIMO
- [Tikhonov] image super-resolution reconstruction based on Tikhonov regularization
猜你喜欢
ctfshow-web355,356(SSRF)
JAX的深度学习和科学计算
[programming training 2] sorting subsequence + inverted string
Will Internet talents be scarce in the future? Which technology directions are popular?
北漂程序员深夜emo发帖求助:女朋友走了我很孤独 ......
ctfshow-web354(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
盘点华为云GaussDB(for Redis)六大秒级能力
【编程强训3】字符串中找出连续最长的数字串+数组中出现次数超过一半的数字
运维管理有什么实用的技巧吗
随机推荐
女生适合学产品经理吗?有什么优势?
[FPGA frame difference] FPGA implementation of frame difference target tracking based on vmodcam camera
JSP - paging
The game is real! China software cup releases a new industrial innovation competition, and schools and enterprises can participate in it jointly
Understanding of Turing test and Chinese Room
Fix the problem that the AI video intelligent platform easycvr device video cannot be played
微软宣布开源 (GODEL) 语言模型聊天机器人
C# Newtonsoft.Json中JObject的使用
【LINGO】求解二次规划
JAX的深度学习和科学计算
iNFTnews | 从《雪崩》到百度“希壤”,元宇宙30年的16件大事
The programmer of Beipiao posted a post for help late at night: I am lonely when my girlfriend is gone
Is it reliable to open an account on the compass with your mobile phone? Is there any potential safety hazard
Vscode automatically formats code according to eslint specification
【系统分析师之路】第五章 复盘软件工程(逆向净室与模型驱动开发)
Cadence OrCAD Capture “网络名”相同,但是未连接或连接错误的解放方案之nodename的用法
EasyNVS云管理平台功能重构:支持新增用户、修改信息等
[programming compulsory training 3] find the longest consecutive number string in the string + the number that appears more than half of the times in the array
Reply and explanation on issues related to "online training of network security education in 2022"
赌上了绩效,赢了公司CTO,我要搭DevOps平台!