--
-- $Id$
--
-- Add FACILITOR support IDP for audience aaxx.facilitor.nl

DEFINE thisfile = 'supportJWT_AAXX.sql'
DEFINE dbuser   = '*'

SET ECHO ON
SET DEFINE ON
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
WHENEVER SQLERROR EXIT;
SELECT adm.scriptspoolfile('&dbuser', '&thisfile') AS fcltlogfile FROM DUAL;
WHENEVER SQLERROR CONTINUE;
SPOOL &fcltlogfile
SET DEFINE OFF

------ payload begin ------

INSERT INTO aut_idp (aut_idp_code,
                     aut_idp_type,
                     aut_idp_algorithm,
                     aut_idp_omschrijving,
                     aut_idp_opmerking,
                     aut_idp_secret,
                     aut_idp_remote_loginurl,
                     aut_idp_remote_logouturl,
                     aut_idp_clockskew,
                     aut_idp_internal,
                     aut_idp_ipfilter,
                     aut_idp_ipauto,
                     aut_idp_audience,
                     aut_idp_issuer)
    VALUES ('FACILITORSUPPORT',
            4, -- JWT
            'HS256',
            'FACILITOR support',
            'Staat alleen aan op hosted omgevingen',
            'M7uOVbyg2XcHgKzxD5KcDjUWNa7Z7nej',
            'http://facws001/gotofacilitor.asp',
            'http://facws001/',
            30,
            1,
            '87.249.108.135,87.249.108.136,80.250.128.5,80.250.128.6,31.161.17.4', --  Enschede/Enschede/Mainz/Mainz/Emmen
            0,
            'aaxx.facilitor.nl',
            'FACWS001');

------ payload end   ------

SET DEFINE OFF
BEGIN adm.systrackscriptId ('$Id$', 1); END;
/

COMMIT;
SET ECHO OFF
SPOOL OFF
SET DEFINE ON
PROMPT Logfile of this upgrade is: &fcltlogfile

