-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from paterczm/master
Fixes #99: Using LightblueMetadataProxyServlet instead of deprecated LightblueProxyServlet
- Loading branch information
Showing
7 changed files
with
41 additions
and
9 deletions.
There are no files selected for viewing
Empty file.
13 changes: 7 additions & 6 deletions
13
metadata-mgmt-saml-auth/src/main/webapp/WEB-INF/jboss-deployment-structure.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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<jboss-deployment-structure> | ||
<deployment> | ||
<dependencies> | ||
<module name="org.picketlink" /> | ||
<module name="com.redhat.lightblue"/> | ||
</dependencies> | ||
</deployment> | ||
<deployment> | ||
<dependencies> | ||
<module name="org.picketlink" /> | ||
<module name="com.redhat.lightblue.client.metadata-mgmt"/> | ||
</dependencies> | ||
</deployment> | ||
</jboss-deployment-structure> |
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
31 changes: 31 additions & 0 deletions
31
metadata-mgmt/src/main/java/com/redhat/lightblue/applications/ApplicationContext.java
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,31 @@ | ||
package com.redhat.lightblue.applications; | ||
|
||
import java.io.IOException; | ||
|
||
import javax.enterprise.context.ApplicationScoped; | ||
import javax.enterprise.inject.Disposes; | ||
import javax.enterprise.inject.Produces; | ||
|
||
import org.apache.http.impl.client.CloseableHttpClient; | ||
|
||
import com.redhat.lightblue.client.LightblueClientConfiguration; | ||
import com.redhat.lightblue.client.PropertiesLightblueClientConfiguration; | ||
import com.redhat.lightblue.client.http.auth.ApacheHttpClients; | ||
|
||
public class ApplicationContext { | ||
@Produces | ||
@ApplicationScoped | ||
public LightblueClientConfiguration getLightblueClientConfiguration() { | ||
return PropertiesLightblueClientConfiguration.fromDefault(); | ||
} | ||
|
||
@Produces | ||
@ApplicationScoped | ||
public CloseableHttpClient getClient(LightblueClientConfiguration config) throws Exception { | ||
return ApacheHttpClients.fromLightblueClientConfiguration(config); | ||
} | ||
|
||
public void closeHttpClient(@Disposes CloseableHttpClient client) throws IOException { | ||
client.close(); | ||
} | ||
} |
Empty file.
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