|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||Authorization||MBS MacCF Plugin||2.8||Yes||No||No||Yes, macOS only||No|
Some notes from Ilija Injac on this usage of this class:
The main problem for the execution of the perl script was, that perl is not able to find the required perl-modules at execution with the option "-U" (this switch is set for security reasons).
It was also neccessary to include the perl-modules from inside the perl script wich has to be executed.
Inside the Realbasic code i created a AuthorizationItemMBS with the value "/usr/bin/perl":
i = new AuthorizationItemMBS
Actually it is the same source as in Christians "Authorization 1" example within the "test1" function. And it works !
- 5 properties
- 19 methods
- method Authorize(rights as AuthorizationItemSetMBS, flags as Integer)
- method Authorize(rights as AuthorizationItemSetMBS, flags as Integer, byref outrights as AuthorizationItemSetMBS)
- method Available as boolean
- method close
- method closeStream
- method EOFStream as boolean
- method Execute(toolpath as string, parameters() as string)
- method Execute(toolpath as string, parameters() as string, openstream as boolean)
- method ExternalForm as string
- method FlushStream
- method Info as AuthorizationItemSetMBS
- method MakeStreamAsyncron
- method NewAuthorization(rights as AuthorizationItemSetMBS, flags as Integer) as Boolean
- method NewAuthorizationFromExternalForm(s as string) as Boolean
- method ReadStream(count as Integer) as string
- method SimpleAuthorize
- method SimpleNewAuthorization as Boolean
- method Wait as Integer
- method WriteStream(s as string) as Integer
- 23 constants
The authorization was cancelled by the user.
The authorization was denied.
The authorization is not allowed to be converted to an external format.
The authorization was denied since no user interaction was possible.
Unable to obtain authorization for this operation.
The authorization is not allowed to be created from an external format.
The provided option flag(s) are invalid for this authorization operation.
The returned authorization is invalid.
The authorization reference is invalid.
The authorization rights are invalid.
The authorization tag is invalid.
An invalid status was returned during execution of a privileged tool.
The specified program could not be executed.
Indicates the Security Server could not preauthorize the right.
If no bits are set, none of the following features are available.
If the bit specified by this mask is set, the Security Server revokes authorization from the process as well as from any other process that is sharing the authorization. If the bit specified by this mask is not set, the Security Server revokes authorization from the process but not from other processes that share the authorization.
If the bit specified by this mask is set, the Security Server attempts to grant the rights requested. Once the Security Server denies one right, it ignores the remaining requested rights.
If the bit specified by this mask is set, you permit the Security Server to interact with the user when necessary.
If the bit specified by this mask and the kAuthorizationFlagExtendRights mask are set, the Security Server grants or denies rights on an individual basis and all rights are checked.
If the bit specified by this mask is set, the Security Server preauthorizes the rights requested.
This class has no sub classes.
Some methods using this class:
- ServiceManagementModuleMBS.CreateAuthorization as AuthorizationMBS
- ServiceManagementModuleMBS.JobBless(domain as string, executableLabel as string, auth as AuthorizationMBS, byref error as Variant) as boolean
- ServiceManagementModuleMBS.JobRemove(domain as string, jobLabel as string, auth as AuthorizationMBS, wait as boolean, byref error as CFErrorMBS) as boolean
- ServiceManagementModuleMBS.JobSubmit(domain as string, job as Dictionary, auth as AuthorizationMBS, byref error as CFErrorMBS) as boolean
Some examples which use this class:
- /MacCF/Authorization/Authorization to Restore File
- /MacCF/Authorization/Authorization with Stream
- /MacCF/Authorization/Authorization with Stream Async
The items on this page are in the following plugins: MBS MacCF Plugin.
MBS FileMaker blog