Commit 9323928e authored by Francesco Chicchiricco's avatar Francesco Chicchiricco
Browse files

Adding security filter and federation server mocks

parent 1da02b46
......@@ -56,6 +56,18 @@ limitations under the License.
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>eu.chorevolution.idm</groupId>
<artifactId>connid-federation-server</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>eu.chorevolution.idm</groupId>
<artifactId>connid-security-filter</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
......
......@@ -22,6 +22,9 @@ import javax.ws.rs.core.Response;
import org.apache.cxf.common.util.Base64Exception;
import org.apache.cxf.common.util.Base64Utility;
/**
* Sample Basic Authentication handling.
*/
public class AuthenticationHandler implements ContainerRequestFilter {
@Override
......
/*
* Copyright 2016 The CHOReVOLUTION project
*
* Licensed 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.
*/
package eu.chorevolution.idm.choremocks.fs;
import eu.chorevolution.idm.connid.federationserver.api.EndUser;
import eu.chorevolution.idm.connid.federationserver.api.FederationServerEndUserService;
import java.util.Collections;
import java.util.List;
import org.springframework.stereotype.Service;
@Service
public class FederationServerEndUserServiceImpl implements FederationServerEndUserService {
@Override
public List<EndUser> list(final String domain) {
return Collections.emptyList();
}
@Override
public void create(final String domain, final EndUser enduser) {
}
@Override
public EndUser read(final String domain, final String username) {
return null;
}
@Override
public void update(final String domain, final String username, final EndUser enduser) {
}
@Override
public void delete(final String domain, final String username) {
}
}
/*
* Copyright 2016 The CHOReVOLUTION project
*
* Licensed 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.
*/
package eu.chorevolution.idm.choremocks.sf;
import eu.chorevolution.idm.connid.securityfilter.api.RuntimeInfo;
import eu.chorevolution.idm.connid.securityfilter.api.SecurityFilterManagement;
import eu.chorevolution.idm.connid.securityfilter.api.Status;
import org.springframework.stereotype.Service;
@Service
public class SecurityFilterManagementImpl implements SecurityFilterManagement {
@Override
public RuntimeInfo info() {
return null;
}
@Override
public void status(final Status status) {
}
@Override
public void securityContext(final String securityContext) {
}
}
......@@ -36,7 +36,11 @@ limitations under the License.
<bean id="authenticationHandler" class="eu.chorevolution.idm.choremocks.AuthenticationHandler"/>
<jaxrs:server address="/"
basePackages="eu.chorevolution.idm.choremocks.ee"
basePackages="eu.chorevolution.idm.choremocks.ee,
eu.chorevolution.idm.connid.federationserver.api,
eu.chorevolution.idm.choremocks.sf,
eu.chorevolution.idm.connid.securityfilter.api,
eu.chorevolution.idm.choremocks.fs"
staticSubresourceResolution="true">
<jaxrs:providers>
<ref bean="authenticationHandler"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment