10.02.2013 Views

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

IBM Tivoli Access Manager for e-business: WebSEAL Administration ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Retrieving<br />

ADI<br />

from<br />

the<br />

<strong>WebSEAL</strong><br />

client<br />

request<br />

In<br />

a<br />

<strong>WebSEAL</strong><br />

environment,<br />

authorization<br />

rules<br />

can<br />

be<br />

written<br />

to<br />

require<br />

authorization<br />

decision<br />

in<strong>for</strong>mation<br />

(ADI)<br />

contained<br />

in<br />

the<br />

client<br />

HTTP/HTTPS<br />

request.<br />

ADI<br />

can<br />

be<br />

contained<br />

in<br />

the<br />

request<br />

header,<br />

the<br />

request<br />

query<br />

string,<br />

and<br />

the<br />

request<br />

POST<br />

body.<br />

Authorization<br />

decision<br />

in<strong>for</strong>mation<br />

is<br />

referred<br />

to<br />

by<br />

an<br />

XML<br />

container<br />

name<br />

in<br />

authorization<br />

rules.<br />

A<br />

special<br />

<strong>WebSEAL</strong>-specific<br />

prefix<br />

in<br />

the<br />

container<br />

name<br />

is<br />

used<br />

to<br />

alert<br />

the<br />

authorization<br />

rules<br />

evaluation<br />

process<br />

that<br />

<strong>WebSEAL</strong><br />

can<br />

interpret<br />

this<br />

parameter<br />

correctly<br />

and<br />

return<br />

a<br />

value.<br />

Prefixes<br />

can<br />

be<br />

specific<br />

to<br />

any<br />

resource<br />

manager.<br />

Accordingly,<br />

the<br />

resource<br />

manager<br />

must<br />

be<br />

designed<br />

to<br />

respond<br />

appropriately<br />

to<br />

a<br />

request<br />

<strong>for</strong><br />

ADI.<br />

The<br />

following<br />

container<br />

names<br />

contain<br />

prefixes<br />

that<br />

are<br />

appropriate<br />

<strong>for</strong><br />

<strong>WebSEAL</strong>:<br />

v<br />

AMWS_hd_name<br />

Request<br />

header<br />

container<br />

name.<br />

The<br />

value<br />

of<br />

the<br />

HTTP<br />

header<br />

called<br />

name<br />

in<br />

the<br />

HTTP<br />

request<br />

is<br />

returned<br />

to<br />

the<br />

authorization<br />

rules<br />

evaluator<br />

as<br />

ADI.<br />

v<br />

AMWS_qs_name<br />

Request<br />

query<br />

string<br />

container<br />

name.<br />

The<br />

value<br />

of<br />

name<br />

in<br />

the<br />

request<br />

query<br />

string<br />

is<br />

returned<br />

to<br />

the<br />

authorization<br />

rules<br />

evaluator<br />

as<br />

ADI.<br />

v<br />

AMWS_pb_name<br />

Request<br />

POST<br />

body<br />

container<br />

name.<br />

The<br />

value<br />

of<br />

name<br />

in<br />

the<br />

request<br />

POST<br />

body<br />

is<br />

returned<br />

to<br />

the<br />

authorization<br />

rules<br />

evaluator<br />

as<br />

ADI.<br />

The<br />

following<br />

process<br />

flow<br />

helps<br />

illustrate<br />

how<br />

prefixes<br />

enable<br />

the<br />

extraction<br />

of<br />

ADI<br />

from<br />

client<br />

requests:<br />

1.<br />

An<br />

authorization<br />

rule<br />

is<br />

written<br />

that<br />

requires<br />

ADI<br />

from<br />

the<br />

client<br />

request<br />

(<strong>for</strong><br />

example,<br />

a<br />

specific<br />

HTTP<br />

header<br />

in<br />

the<br />

request).<br />

In<br />

this<br />

example,<br />

the<br />

AMWS_hd_<br />

prefix<br />

is<br />

used<br />

in<br />

the<br />

container<br />

name<br />

specified<br />

in<br />

the<br />

rule.<br />

The<br />

prefix<br />

must<br />

be<br />

specified<br />

by<br />

the<br />

resource-manager-provided-adi<br />

parameter<br />

in<br />

the<br />

[aznapi-configuration]<br />

stanza<br />

of<br />

the<br />

<strong>WebSEAL</strong><br />

configuration<br />

file.<br />

The<br />

authorization<br />

service<br />

incorporates<br />

this<br />

configuration<br />

in<strong>for</strong>mation<br />

during<br />

its<br />

initialization.<br />

This<br />

<strong>WebSEAL</strong>-specific<br />

prefix<br />

alerts<br />

the<br />

authorization<br />

evaluation<br />

process<br />

that<br />

the<br />

required<br />

ADI<br />

is<br />

available<br />

in<br />

the<br />

client<br />

request<br />

and<br />

that<br />

<strong>WebSEAL</strong><br />

knows<br />

how<br />

to<br />

find,<br />

extract,<br />

and<br />

return<br />

this<br />

ADI.<br />

2.<br />

The<br />

authorization<br />

rules<br />

evaluation<br />

process<br />

tries<br />

to<br />

evaluate,<br />

<strong>for</strong><br />

example,<br />

the<br />

AMWS_hd_host<br />

container<br />

name<br />

in<br />

a<br />

rule.<br />

The<br />

AMWS_hd_<br />

prefix<br />

alerts<br />

the<br />

authorization<br />

evaluation<br />

process<br />

that<br />

<strong>WebSEAL</strong><br />

can<br />

interpret<br />

this<br />

container<br />

name<br />

correctly<br />

and<br />

return<br />

a<br />

value.<br />

3.<br />

The<br />

AMWS_hd_host<br />

container<br />

name<br />

is<br />

sent<br />

to<br />

<strong>WebSEAL</strong>.<br />

<strong>WebSEAL</strong><br />

is<br />

designed<br />

to<br />

recognize<br />

and<br />

interpret<br />

the<br />

AMWS_hd_<br />

prefix.<br />

4.<br />

<strong>WebSEAL</strong><br />

responds<br />

to<br />

the<br />

AMWS_hd_host<br />

container<br />

name<br />

by<br />

looking<br />

<strong>for</strong><br />

the<br />

″host″<br />

header<br />

in<br />

the<br />

client<br />

request<br />

and<br />

extracting<br />

the<br />

value<br />

associated<br />

with<br />

that<br />

header.<br />

5.<br />

<strong>WebSEAL</strong><br />

returns<br />

the<br />

″host″<br />

header<br />

value<br />

(as<br />

an<br />

XML<br />

container)<br />

to<br />

the<br />

authorization<br />

rules<br />

evaluation<br />

process.<br />

6.<br />

The<br />

authorization<br />

rules<br />

evaluation<br />

process<br />

uses<br />

the<br />

value<br />

as<br />

ADI<br />

in<br />

its<br />

evaluation<br />

of<br />

the<br />

rule.<br />

Chapter<br />

13.<br />

Authorization<br />

decision<br />

in<strong>for</strong>mation<br />

retrieval<br />

359

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!