When an app is trying to access identities put in the keychain by cryptotokenkit extension, the user gets asked a permission pop-up which reads
'Token Access Request" <App> would like access a token provided by: "<Crypto token kit extension name>
with 2 options 'Don't allow' and 'OK'
I accidently clicked "Don't allow" and now can't access identities put in crypto token kit.
How can I reset the preference?
OK, so there’s definitely a bug in play here. Well, more than one bug )-:
The way this is currently supposed to work is that deleting the app and restarting the device should clear the state. When you re-install the app, it should prompt again.
I see a number of problems with this:
-
It forces the user to restart, which is less than ideal.
-
It forces you to delete the app, which is problematic if the app has other state that you want to preserve.
-
It doesn’t actually work as specified )-:
IMO this situation is most definitely bugworthy. I’m going to discuss my specific recommendations about that below. However, right now I want to discuss the workaround.
It is possible to clear this state on the current system [1] but it’s tricky. The process is:
-
Delete your app from the device.
-
Restart.
-
Install a completely different app that triggers the token access alert. It doesn’t matter how you respond here, just triggering the alert is sufficient.
-
Re-install and run the origina app. This will now trigger the alert.
This works because step 3 causes the system to rebuild its view of the world, and thus clean up the state of the deleted app.
Clearly this is more of a developer-level workaround than a user-level one, which brings us back to the subject of bug reports.
[1] I’m testing on iOS 18.1 but AFAIK this problem has been around for a while and it’s not fixed in 18.1.1 or the current 18.2 beta.
I think you should file at least two bugs here:
-
A short-term bug requesting that we fix the problem discussed above. The current behaviour is broken, and even the expected behaviour, which requires a restart, is very inconvenient.
-
A longer-term bug against for a UI that lets the user control this in Settings. This seems pretty reasonable given that it’s there for most other user data protection privileges, like camera and local network access.
Finally, you might want to file an enhancement request for an API to detect whether you have access, per point 3 in your earlier post.
When you go to file your bugs:
-
See Bug Reporting: How and Why? for hints and tips and how to do that.
-
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"