-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
152 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
testbed/integration/shibboleth-idp/config/shib-idp/conf/global.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <beans xmlns="http://www.springframework.org/schema/beans" | ||
| xmlns:context="http://www.springframework.org/schema/context" | ||
| xmlns:util="http://www.springframework.org/schema/util" | ||
| xmlns:p="http://www.springframework.org/schema/p" | ||
| xmlns:c="http://www.springframework.org/schema/c" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
| http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd | ||
| http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd" | ||
|
|
||
| default-init-method="initialize" | ||
| default-destroy-method="destroy"> | ||
|
|
||
| <!-- Use this file to define any custom beans needed globally. --> | ||
|
|
||
| <!-- Postgres configuration --> | ||
| <bean id="shibboleth.JPAStorageService" | ||
| class="org.opensaml.storage.impl.JPAStorageService" | ||
| p:cleanupInterval="%{idp.storage.cleanupInterval:PT10M}" | ||
| c:factory-ref="shibboleth.JPAStorageService.EntityManagerFactory" /> | ||
|
|
||
| <bean id="shibboleth.JPAStorageService.EntityManagerFactory" | ||
| class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> | ||
| <property name="persistenceUnitName" value="storageservice" /> | ||
| <property name="packagesToScan" value="org.opensaml.storage.impl" /> | ||
| <property name="dataSource" ref="shibboleth.JPAStorageService.DataSource" /> | ||
| <property name="jpaVendorAdapter" ref="shibboleth.JPAStorageService.JPAVendorAdapter" /> | ||
| <property name="jpaDialect"> | ||
| <bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" /> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <bean id="shibboleth.JPAStorageService.JPAVendorAdapter" | ||
| class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> | ||
| <property name="database" value="POSTGRESQL" /> | ||
| </bean> | ||
| <bean id="shibboleth.JPAStorageService.DataSource" | ||
| class="com.zaxxer.hikari.HikariDataSource" destroy-method="close" lazy-init="true" | ||
| p:driverClassName="org.postgresql.Driver" | ||
| p:jdbcUrl="jdbc:postgresql://database:5432/oidc_dynreg" | ||
| p:username="shibui" | ||
| p:password="shibui" /> | ||
|
|
||
| <!-- | ||
| Algorithm include/exclude sets that override or merge with library defaults. Normally you can leave these | ||
| empty or commented and use the system defaults, but you can override those defaults using these beans. | ||
| Each <value> element is an algorithm URI; you can also use <util:constant> elements in place of literal values. | ||
| --> | ||
|
|
||
| <!-- | ||
| <util:set id="shibboleth.IncludedSignatureAlgorithms"> | ||
| </util:set> | ||
| <util:set id="shibboleth.ExcludedSignatureAlgorithms"> | ||
| </util:set> | ||
| <util:set id="shibboleth.IncludedEncryptionAlgorithms"> | ||
| </util:set> | ||
| <util:set id="shibboleth.ExcludedEncryptionAlgorithms"> | ||
| </util:set> | ||
| --> | ||
|
|
||
| <!-- | ||
| If you need to define and inject custom Java object(s) into the various views used throughout the | ||
| system (errors, login, logout, etc.), you can uncomment and define the bean below to be of any | ||
| type required. It will appear in the view scope as a variable named "custom". | ||
| The example below defines the bean as a map, which allows you to inject multiple objects under | ||
| named keys to expand the feature to support multiple injected objects. | ||
| --> | ||
|
|
||
| <!-- | ||
| <util:map id="shibboleth.CustomViewContext"> | ||
| <entry key="foo" value="bar"/> | ||
| </util:map> | ||
| --> | ||
|
|
||
| </beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
testbed/integration/shibboleth-idp/config/shib-idp/conf/oidc-clientinfo-resolvers.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <beans xmlns="http://www.springframework.org/schema/beans" | ||
| xmlns:context="http://www.springframework.org/schema/context" | ||
| xmlns:util="http://www.springframework.org/schema/util" | ||
| xmlns:p="http://www.springframework.org/schema/p" | ||
| xmlns:c="http://www.springframework.org/schema/c" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
| http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd | ||
| http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd" | ||
|
|
||
| default-init-method="initialize" | ||
| default-destroy-method="destroy" | ||
| default-lazy-init="true"> | ||
|
|
||
| <!-- | ||
| The following example contains two OIDC client information resolvers: | ||
| - first one reading a single client's information from a JSON file | ||
| - second one fetching client information from a configured StorageService | ||
| --> | ||
|
|
||
| <util:list id="shibboleth.oidc.ClientInformationResolvers"> | ||
| <!-- <ref bean="ExampleFileResolver" /> --> | ||
| <ref bean="dynreg" /> | ||
| </util:list> | ||
|
|
||
| <!-- | ||
| <bean id="ExampleFileResolver" parent="shibboleth.oidc.FilesystemClientInformationResolver" | ||
| c:metadata="%{idp.home}/metadata/oidc-client.json" /> | ||
| --> | ||
|
|
||
| <bean id="dynreg" parent="shibboleth.oidc.StorageClientInformationResolver" | ||
| p:storageService-ref="shibboleth.JPAStorageService" /> | ||
|
|
||
| <!-- | ||
| <bean id="ExampleStorageClientInformationResolver" parent="shibboleth.oidc.StorageClientInformationResolver" | ||
| p:storageService-ref="#{'%{idp.oidc.dynreg.StorageService:shibboleth.StorageService}'.trim()}" /> | ||
| --> | ||
| </beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| CREATE DATABASE oidc_dynreg; | ||
| \c oidc_dynreg | ||
| CREATE TABLE storagerecords ( | ||
| context varchar(255) NOT NULL, | ||
| id varchar(255) NOT NULL, | ||
| expires bigint DEFAULT NULL, | ||
| value text NOT NULL, | ||
| version bigint NOT NULL, | ||
| PRIMARY KEY (context, id) | ||
| ); |