| Package | osid.authorization |
|---|---|
| Title | Authorization Open Service Interface Definitions |
| Version | 3.1.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
ExampleAuthentication 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 CatalogingAuthorizations, Functions and
Qualifiers may be organized into one or many
Vaults. This serves to categorize
authorizatiion data for the purpose of browsing or
auditing. Vaults are hierarchical where each
node includes all the authorization data of its children.
A single root node will make available all known
authorizations and is a reasonable choice for a default
Vault for a non-federated aware consumer. A
federated authorization scheme is one in which
Vaults are available for selection.
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
|