kernel authentication & authorization for j2ee (kaajee ... · web viewkernel authentication &...

231
KERNEL AUTHENTICATION & AUTHORIZATION FOR J2EE (KAAJEE) VERSION 1.1.0 and SECURITY SERVICE PROVIDER INTERFACE (SSPI) VERSION 1.1.0 FOR WEBLOGIC VERSIONS 9.2 AND HIGHER DEPLOYMENT GUIDE March 2011

Upload: others

Post on 01-Feb-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

<% String groupname = "XUKAAJEE_SAMPLE_ROLE";

%>

Hi there. This web page is a protected application resource.

[YOUR APP PAGE GOES HERE]

To get here you needed to both authenticate and authorize.

So let's see who you are.

Authenticated username -- request.getRemoteUser(): <%= request.getRemoteUser() %>

Authorization -- request.isUserInRole("<%= groupname %>")?:

<%= request.isUserInRole(groupname) %>

Authorization -- request.isUserInRole(AUTHENTICATED_KAAJEE_USER)?:

<%= request.isUserInRole("AUTHENTICATED_KAAJEE_USER") %>

Authorization -- request.principal name ?:

<%= request.getUserPrincipal() %>

<% LoginUserInfoVO userLoginInfo =

(LoginUserInfoVO) session.getAttribute(LoginUserInfoVO.SESSION_KEY);

pageContext.setAttribute("userInfo", userLoginInfo);

%>

type="REDACTED" />

User Info (from Session):

VPID:

DUZ:

User name (.01 New Person):

User name (display):

property="UserNameDisplay" />

Last Name:

property="UserLastName" />

First Name:

property="UserFirstName" />

Middle name:

property="UserMiddleName" />

Prefix:

Suffix:

Degree:

Login Station Number:

property="LoginStationNumber" />

Parent Administrative

Facility Station Number:

property="UserParentAdministrativeFacilityStationNumber" />

Parent Computer System Station Number:

property="UserParentComputerSystemStationNumber" />

Permissible Divisions

(New Person file):

<%

StringBuffer sb = new StringBuffer();

{

TreeMap permittedDivisions =

userLoginInfo.getPermittedNewPersonFileDivisions();

if (permittedDivisions != null) {

Set keySet = permittedDivisions.keySet();

Iterator it = keySet.iterator();

while (it.hasNext()) {

String divNumber = (String) it.next();

VistaDivisionVO vDiv =

(VistaDivisionVO) permittedDivisions.get(divNumber);

sb.append(vDiv.toString());

sb.append("
");

}

}

}

%>

<%= sb.toString() %>

Divisions that are children of


the Login Division's Computing Facility


institution, sharing the same computing


facility:

<%

sb = new StringBuffer();

{

TreeMap cfDivisions =

userLoginInfo.getLoginDivisionVistaProviderDivisions();

if (cfDivisions != null) {

Set keySet = cfDivisions.keySet();

Iterator it = keySet.iterator();

while (it.hasNext()) {

String divNumber = (String) it.next();

VistaDivisionVO vDiv =

(VistaDivisionVO) cfDivisions.get(divNumber);

sb.append(vDiv.toString());

sb.append("
");

}

}

}

%>

<%= sb.toString() %>

LOGOUT