WikiStart: fb_psnc.xml

File fb_psnc.xml, 3.4 KB (added by jaftowicz, 7 years ago)

Sample configuration file for FLS

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Facebook Login Servlet - Shiboleth Identity Provider integrator with Facebook
4 * Copyright (C) 2012 Poznan Supercomputing and Networking Center - Application Department
5 *
6 * contact: adamski@man.poznan.pl
7 *
8 * This program is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details. You should have received a copy of
15 * the GNU General Public License along with this program.
16 * If not, see <http://www.gnu.org/licenses/>.
17 *
18 *
19 * Poznan Supercomputing and Networking Center - Application Department,
20 * ul.Dąbrowskiego 79a, 60-529 Poznań, Poland. (+48 61) 858-20-72
21 * http://apps.man.poznan.pl/
22 *
23 * This application was developed as a part of the SYNAT project
24 * http://www.synat.pl/en
25 *
26 * Poznan Supercomputing and Networking Center, hereby disclaims all copyright interest in
27 * the Facebook Login Servlet written by Jakub "Erwin" Aftowicz. (erwin37@gmail.com)
28 *
29 * Marcin Adamski , 21 MAY 2012 (adamski@man.poznan.pl)
30 -->
31 
32   <FacebookServletConfiguration
33    xmlns="http://www.man.poznan.pl/fb_psnc.xsd"
34    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
35    xsi:schemaLocation="www.man.poznan.pl fb_psnc.xsd"
36    APP_ID="**********************"
37    APP_SECRET="xxxxxxxyyyyyyyy00000">
38   
39        <DataBaseConfiguration isUsed="true">
40            <Driver>com.mysql.jdbc.Driver</Driver>
41            <DatabaseName>jdbc:mysql://MY_BASE_ADDRESS/MY_BASE</DatabaseName>
42            <UserName>DATABASE_USER</UserName>
43            <Password>DATABASE_PASS</Password>
44            <Statement>SELECT sample1, sample2, sample3 FROM my_table WHERE email=?</Statement>
45                        <InsertStatement>INSERT INTO users(surname, email) VALUES (?,?)</InsertStatement>
46        </DataBaseConfiguration>
47 
48 
49        <BlackListConfiguration isUsed="true">
50            <Driver>com.mysql.jdbc.Driver</Driver>
51            <DatabaseName>jdbc:mysql://MY_BASE_ADDRESS/MY_BASE</DatabaseName>
52            <UserName>DATABASE_USER</UserName>
53            <Password>DATABASE_PASS</Password>
54            <Statement>SELECT email FROM banned_users WHERE email=?</Statement>
55            <RedirectAddress>$IDP_BASE_URL$/banned.jsp</RedirectAddress>
56        </BlackListConfiguration>
57 
58   
59        <FacebookParameters>
60            <FbParameter name="id" return="false"/>   
61            <FbParameter name="name" return="false"/>
62            <FbParameter name="first_name" return="false"/>
63            <FbParameter name="middle_name" return="false"/>
64            <FbParameter name="last_name" return="false" numberInInsertStatement="1"/>
65            <FbParameter name="email" return="true" numberInStatement="1" numberInBlackListStatement="1" numberInInsertStatement="2"/>
66        </FacebookParameters>
67   
68       
69   
70        <Parameters>
71            <Parameter name="sample1" default="guest"/>
72            <Parameter name="sample2" default="guest"/>
73            <Parameter name="sample3" default="guest"/>           
74        </Parameters>
75 
76 
77    </FacebookServletConfiguration>