ArticleslgStudy

science

Abbreviated Language for Authorization

Abbreviated Language for Authorization is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Abbreviated Language for Authorization rather than just read about it. In short: The Abbreviated Language for Authorization (ALFA) is a domain-specific language used in the formulation of access-control policies. History Origin XACML, the eXtensible Access Control Markup Language, uses XML as its main encoding language.

Key takeaways

  • Abbreviated Language for Authorization belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Abbreviated Language for Authorization to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Abbreviated Language for Authorization from memory before moving on to harder problems.

Reference excerpt

The Abbreviated Language for Authorization (ALFA) is a domain-specific language used in the formulation of access-control policies.

History

Origin XACML, the eXtensible Access Control Markup Language, uses XML as its main encoding language. Writing XACML policies directly in XACML leads to bloated, human-unfriendly text, therefore a new, more lightweight, notation was necessary. Axiomatics researcher, Pablo Giambiagi, therefore designed ALFA, the Axiomatics Language for Authorization. ALFA maps directly into XACML. ALFA contains the same structural elements as XACML i.e. PolicySet, Policy, and Rule.

Axiomatics donates ALFA to OASIS In March 2014, Axiomatics announced it was donating ALFA to the OASIS XACML Technical Committee in order to advance its standardization. ALFA was consequently renamed Abbreviated Language for Authorization and filed for standardization.

Sample use cases Medical use case: doctors can view the medical records of patients they have a relationship with. Financial use case: employees in Singapore can view the customer accounts of employees based in Singapore. Insurance use case: an insurance agent can approve the claim of a user if the claim is in the same region as the agent and if the claim amount is less than the agent's approval amount. The words doctor, view, medical record, Singapore... are all examples of attribute values. Attributes make up the building blocks of policies in ABAC and consequently in ALFA.

Structure Just like XACML, ALFA has three structural elements:

PolicySet Policy Rule Like in XACML, a PolicySet can contain PolicySet and Policy elements. A Policy can contain Rule elements. A Rule contains a decision (either Permit or Deny). In addition, in ALFA, it's possible to add Rule elements to PolicySet and Policy elements. PolicySet, Policy, and Rule elements can be nested or referenced to. In order to resolve conflicts between siblings, ALFA (as does XACML) uses combining algorithms. There are several combining algorithms that may be used.

Data types ALFA supports all the data types that are defined in the OASIS XACML Core Specification. Some datatypes e.g. numerical (integer, double) and boolean map directly from ALFA to XACML. Others need to be converted such as date or time attributes. To convert an attribute into the relevant data type, use the "value":datatype notation. See below for examples

Native attribute values mapped directly from ALFA to XACML String, integer, double, and boolean all map directly from ALFA to XACML. They do not need a conversion

ALFA policy using boolean attributes

Sample policies

A simple policy & rule with a condition The following ALFA example represents a XACML policy which contains a single rule. The policy and rule both have a target. The rule also has a condition which is used to compare 2 attributes together to implement a relationship check (user ID must be equal to owner). Whenever one needs to check 2 attributes together, they must use a condition.

Using time in a XACML policy written in ALFA

Policy references ALFA can use policy (set) references. They are in fact used implicitly when doing the following.

Obligations and advice Obligations and advice are statements in XACML that can be returned from the PDP to the PEP alongside the decision (Permit, Deny...). Obligations and advice are triggered on either Permit or Deny.

Break the glass authorization scenario Start by defining the attributes and obligations:

The policy can now be defined with 3 rules:

the first rule is for normal access (doctors can view records of patients they are assigned to. the second rule is for special access because the glass has been broken. the third rule is the rule that triggers the obligation telling the user how to break the glass.

Time-based fine-grained authorization policy The following is an example of an ABAC policy implemented using ALFA. It uses time as attributes. It uses a XACML condition to compare the currentTime attribute to the value representing 5pm (expressed in 24-hour time). Note the use of :time to convert the String value to the right data type.

HL7 policies

Use cases HL7 defines a series of medical access control use cases which can be easily defined in ALFA.

Sample ALFA policies for HL7

Access control based on category of action

Implementations

VS Code extension A free extension for the VS Code editor that supports code completion, syntax highlighting, refactoring, and go-to-definition navigation. It can also compile ALFA into XACML 3.0.

Plugin for Eclipse The ALFA Plugin for Eclipse is a tool that converts your Eclipse programming IDE to a dedicated editor of authorization policies using ALFA syntax. ALFA policies can then easily be converted into XACML 3.0 policies and loaded into your XACML policy management tool.

References

External References European analysts talk about ALFA A Template-Based Policy Generation Interface for RESTful Web Services

Worked examples

Example 1 — a first encounter with Abbreviated Language for Authorization

Start with the simplest possible case. Write down what Abbreviated Language for Authorization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Abbreviated Language for Authorization before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Abbreviated Language for Authorization ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Abbreviated Language for Authorization

In research
Abbreviated Language for Authorization appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Abbreviated Language for Authorization in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Abbreviated Language for Authorization is common in secondary-school and first-year university syllabi. It links to neighbouring topics XML-based programming languages, so understanding it makes those chapters shorter.
In everyday life
Look for Abbreviated Language for Authorization outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Abbreviated Language for Authorization” →

How to study Abbreviated Language for Authorization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Abbreviated Language for Authorization means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Abbreviated Language for Authorization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Abbreviated Language for Authorization in simple terms?

The Abbreviated Language for Authorization (ALFA) is a domain-specific language used in the formulation of access-control policies. History Origin XACML, the eXtensible Access Control Markup Language, uses XML as its main encoding language.

Why does Abbreviated Language for Authorization matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Abbreviated Language for Authorization?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Abbreviated Language for Authorization.

Tags

  • XML-based programming languages

Keep exploring