blob: 24a6d89728e9231fa54ff8a5ce723fd2e7fbf514 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
This file is used for description of auth process
you specify here all columns that should be retrieved from specified
database table and to which request parameters they should be compared.
Values you specify can be automatically propagated to the created session
-->
<auth-descriptor>
<connection>personnel</connection>
<table name="employee">
<!--
because dbcol user has also matching request parameter, it will be used
for actual authentication, department_id will not be compared with
anything, it will just be along with username propagated to the session
-->
<select dbcol="name" request-param="username" to-session="username"/>
<select dbcol="department_id" to-session="department_id" type="long"/>
</table>
</auth-descriptor>
<!-- vim: set et ts=2 sw=2: -->