Thank you for your reply and insight.
To clarify the setup:
I’ve defined a custom right custom.test as follows:
<string>rule</string>
<key>rule</key>
<array>
<string>custom.test.plugin</string>
<string>custom.test.authenticate</string>
</array>
Where:
custom.test.plugin is defined as:
<string>evaluate-mechanisms</string>
<key>mechanisms</key>
<array>
<string>AuthorizationPlugin:elevate-privileges,privileged</string>
</array>
custom.test.authenticate is defined as:
<key>authenticate-user</key>
<true/>
<key>allow-root</key>
<true/>
<key>class</key>
<string>user</string>
<key>group</key>
<string>admin</string>
My Authorization Plug-in is loaded correctly, and the mechanism elevate-privileges is invoked as expected.
My question is:
When the system evaluates the right custom.test, is it possible for my plug-in (inside the elevate-privileges mechanism) to programmatically satisfy the custom.test.authenticate rule — for example, by validating the credentials of another admin user?
Or more directly:
Can a plug-in participating in a rule chain short-circuit or fulfill an authenticate-user condition on behalf of the system?
Appreciate your help and any guidance you can provide.
Topic:
Privacy & Security
SubTopic:
General
Tags: