| Package | osid.authorization |
|---|---|
| Title | Authorization Open Service Interface Definitions |
| Version | 3.0.0 |
| Description |
The Authorization OSID manages and queries authorizations. Authorizations An
This tuple in essence defines a role. "Instructor" is not a role and is not suitable for making an authorization decision. "Instructs Physics 101", both the function and qualifier, defines the complete role (within the context of a particular college) that can be used for an authorization decision. The basic service of the Authorization OSID is to
provide a means for asking whether a given Example
Authentication auth = authNValidationSession.authenticate(creds);
AuthorizationSession session = authZManager.getAuthorizationSession();
boolean authorized = session.isAuthorized(auth.getAgentId(), functionId, qualifierId);
The rest of the Authorization OSID is concerned with managing authorizations. Explicit/Implicit Authorizations Authorizations can be explcit or implcit. Explicit
authorizations are managed while implcit authorizations
are derived from
The Authorization OSID manages Vault Cataloging Notifications Certain consumers may wish to be notified of changes
within the service. Authorization supports notifications
via
if (manager.supportsAuthorizationNotification()) {
AuthorizationNotificationSession ans = manager.getAuthorizationNotificationSession(receiver);
ans.registerForDeletedAuthorizations();
}
AuthorizationReceiver receiver {
newAuthorization(Authorization a) {print("authorization created");}
deletedAuthorization(Authorization a) {print("authorization removed");}
}
Sub Packages The Authorization OSID includes an Authorization Rules
OSID for managing the effectiveness of |