<dependencyManagement>
<dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>aaa-authn-odl-plugin</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netconf-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>netconf-dom-api</artifactId>
+ <artifactId>netconf-auth</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>netconf-auth</artifactId>
+ <artifactId>netconf-auth-aaa</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<artifactId>netconf-config</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>netconf-dom-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>netconf-server</artifactId>
<type>xml</type>
<classifier>features</classifier>
</dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>odl-aaa-netconf-plugin-no-cluster</artifactId>
- <version>${project.version}</version>
- <type>xml</type>
- <classifier>features</classifier>
- </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>odl-netconf-all</artifactId>
<type>xml</type>
<classifier>features</classifier>
</dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>odl-aaa-netconf-plugin-no-cluster</artifactId>
- <type>xml</type>
- <classifier>features</classifier>
- </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>odl-netconf-all</artifactId>
<type>xml</type>
<classifier>features</classifier>
</dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>odl-aaa-netconf-plugin-no-cluster</artifactId>
- <type>xml</type>
- <classifier>features</classifier>
- </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>odl-netconf-all</artifactId>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright © 2017 Red Hat, Inc. and others.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.opendaylight.netconf</groupId>
- <artifactId>feature-parent</artifactId>
- <version>6.0.0-SNAPSHOT</version>
- <relativePath>../../parent</relativePath>
- </parent>
-
- <artifactId>odl-aaa-netconf-plugin-no-cluster</artifactId>
- <packaging>feature</packaging>
- <name>OpenDaylight :: AAA :: ODL NETCONF Plugin - NO CLUSTER</name>
-
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.netconf</groupId>
- <artifactId>netconf-auth</artifactId>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.aaa</groupId>
- <artifactId>odl-aaa-shiro</artifactId>
- <type>xml</type>
- <classifier>features</classifier>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.netconf</groupId>
- <artifactId>aaa-authn-odl-plugin</artifactId>
- </dependency>
- </dependencies>
-</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!--
- Copyright © 2021 PANTHEON.tech, s.r.o. and others.
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
- -->
-<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-aaa-netconf-plugin-no-cluster">
- <feature name="odl-aaa-netconf-plugin-no-cluster">
- <feature version="[0.17,1)">odl-aaa-shiro</feature>
- </feature>
-</features>
<artifactId>odl-aaa-netconf-plugin</artifactId>
<packaging>feature</packaging>
- <name>OpenDaylight :: AAA :: ODL NETCONF Plugin</name>
+ <name>OpenDaylight :: Netconf :: AAA Authorization Plugin</name>
<dependencies>
<dependency>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>aaa-authn-odl-plugin</artifactId>
+ <artifactId>netconf-auth</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>netconf-auth</artifactId>
+ <artifactId>netconf-auth-aaa</artifactId>
</dependency>
</dependencies>
</project>
<modules>
<module>features-netconf</module>
<module>odl-aaa-netconf-plugin</module>
- <module>odl-aaa-netconf-plugin-no-cluster</module>
<module>odl-netconf-all</module>
<module>odl-netconf-api</module>
<module>odl-netconf-client</module>
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.auth;
/**
* Authentication Service definition for netconf.
*/
public interface AuthProvider {
-
/**
* Authenticate user by username/password.
*
* @return true if authentication is successful, false otherwise
*/
boolean authenticated(String username, String password);
-
}
<module>mdsal-netconf-yang-library</module>
<module>netconf-netty-util</module>
<module>netconf-auth</module>
- <module>aaa-authn-odl-plugin</module>
<module>yanglib</module>
<module>tools</module>
<relativePath>../../parent</relativePath>
</parent>
- <artifactId>aaa-authn-odl-plugin</artifactId>
+ <artifactId>netconf-auth-aaa</artifactId>
<packaging>bundle</packaging>
<dependencies>
<groupId>org.opendaylight.aaa</groupId>
<artifactId>aaa-authn-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>netconf-auth</artifactId>
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.netconf.authprovider;
+package org.opendaylight.netconf.auth.aaa;
import static java.util.Objects.requireNonNull;
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.netconf.authprovider;
+package org.opendaylight.netconf.auth.aaa;
import org.opendaylight.aaa.api.PasswordCredentials;
import org.opendaylight.aaa.api.Claim;
import org.opendaylight.aaa.api.PasswordCredentialAuth;
import org.opendaylight.aaa.api.PasswordCredentials;
+import org.opendaylight.netconf.auth.aaa.CredentialServiceAuthProvider;
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class CredentialServiceAuthProviderTest {
</properties>
<modules>
+ <module>netconf-auth-aaa</module>
<module>netconf-common-mdsal</module>
<module>netconf-dom-api</module>
<module>netconf-server-mdsal</module>