tag: '<[sub-project_name]>'
realtime_discussion: ''
meetings:
- - type: 'zoom'
- agenda: 'https://wiki.onap.org/display/DW/AAF+Meeting+Minutes'
- url: 'https://wiki.onap.org/pages/viewpage.action?pageId=15302787'
+ - type: 'n/a'
+ agenda: 'n/a'
+ url: 'n/a'
server: 'n/a'
channel: 'n/a'
- repeats: 'weekly'
- time: '14:00 UTC'
+ repeats: 'n/a'
+ time: 'n/a'
repositories:
- 'aaf/authz'
committers:
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>parent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
</parent>
<artifactId>aaf-auth-client</artifactId>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>authparent</artifactId>
<relativePath>../pom.xml</relativePath>
<groupId>org.onap.aaf.authz</groupId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
</parent>
<artifactId>aaf-auth-deforg</artifactId>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>authparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>parent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
</parent>
<artifactId>authparent</artifactId>
<name>AAF Auth Parent</name>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>cadiparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
import org.onap.aaf.cadi.aaf.AAFPermission;
import org.onap.aaf.cadi.client.Future;
import org.onap.aaf.cadi.client.Rcli;
+import org.onap.aaf.cadi.locator.SingleEndpointLocator;
import org.onap.aaf.cadi.lur.ConfigPrincipal;
import aaf.v2_0.CredRequest;
}
}
- AAFCachedPrincipal cp = new AAFCachedPrincipal(user, bytes, con.cleanInterval);
+ AAFCachedPrincipal cp = new AAFCachedPrincipal(user, bytes, con.userExpires);
// Since I've relocated the Validation piece in the Principal, just revalidate, then do Switch
// Statement
switch(cp.revalidate(state)) {
if (usr!=null) {
usr.principal = cp;
} else {
- addUser(new User<AAFPermission>(cp,con.timeout));
+ addUser(new User<AAFPermission>(cp,con.userExpires));
}
return null;
case INACCESSIBLE:
return "AAF Inaccessible";
case UNVALIDATED:
- addUser(new User<AAFPermission>(user,bytes,con.timeout));
+ addUser(new User<AAFPermission>(user,bytes,con.userExpires));
return "user/pass combo invalid for " + user;
case DENIED:
return "AAF denies API for " + user;
public Resp revalidate(Object state) {
int maxRetries = 15;
- try { // these SHOULD be AAFConHttp and AAFLocator objects, but put in a try anyway to be safe
+ try { // these SHOULD be an AAFConHttp and a AAFLocator or SingleEndpointLocator objects, but put in a try to be safe
AAFConHttp forceCastCon = (AAFConHttp) con;
- AAFLocator forceCastLoc = (AAFLocator) forceCastCon.hman().loc;
- maxRetries = forceCastLoc.maxIters();
+ if (forceCastCon.hman().loc instanceof SingleEndpointLocator) {
+ maxRetries = 1; // we cannot retry the single LGW gateway!
+ } else {
+ AAFLocator forceCastLoc = (AAFLocator) forceCastCon.hman().loc;
+ maxRetries = forceCastLoc.maxIters();
+ }
} catch (Exception e) {
access.log(Access.Level.DEBUG, e);
}
try {
Miss missed = missed(getName(), getCred());
if (missed == null || missed.mayContinue()) {
- CredRequest cr = new CredRequest();
- cr.setId(getName());
- cr.setPassword(new String(getCred()));
- Rcli<CLIENT> client = con.clientIgnoreAlreadyAttempted(attemptedUris);
+ Rcli<CLIENT> client = con.clientIgnoreAlreadyAttempted(attemptedUris).forUser(con.basicAuth(getName(), new String(getCred())));
thisUri = client.getURI();
- Future<String> fp = client.readPost("/authn/validate", con.credReqDF, cr);
- //Rcli<CLIENT> client = con.client().forUser(con.basicAuth(getName(), new String(getCred())));
- //Future<String> fp = client.read(
- // "/authn/basicAuth",
- // "text/plain"
- // );
+ Future<String> fp = client.read(
+ "/authn/basicAuth",
+ "text/plain"
+ );
if (fp.get(con.timeout)) {
expires = System.currentTimeMillis() + timeToLive;
- addUser(new User<AAFPermission>(this, expires));
+ addUser(new User<AAFPermission>(this, timeToLive));
return Resp.REVALIDATED;
} else {
addMiss(getName(), getCred());
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>cadiparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>cadiparent</artifactId>
<relativePath>..</relativePath>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>cadiparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>parent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
</parent>
<artifactId>cadiparent</artifactId>
<name>AAF CADI Parent (Code, Access, Data, Identity)</name>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>cadiparent</artifactId>
<relativePath>..</relativePath>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<name>CADI Servlet Sample (Test Only)</name>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>miscparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>miscparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>parent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
</parent>
<artifactId>miscparent</artifactId>
<name>AAF Misc Parent</name>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>miscparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<parent>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>miscparent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.onap.aaf.authz</groupId>
<artifactId>parent</artifactId>
- <version>2.7.1-SNAPSHOT</version>
+ <version>2.7.4-SNAPSHOT</version>
<name>aaf-authz</name>
<packaging>pom</packaging>
--- /dev/null
+distribution_type: 'maven'
+version: '2.7.1'
+project: 'aaf-authz'
+log_dir: 'aaf-authz-maven-stage-master/482/'
--- /dev/null
+distribution_type: 'maven'
+version: '2.7.2'
+project: 'aaf-authz'
+log_dir: 'aaf-authz-maven-stage-master/506/'
--- /dev/null
+distribution_type: 'maven'
+version: '2.7.3'
+project: 'aaf-authz'
+log_dir: 'aaf-authz-maven-stage-master/512/'
--- /dev/null
+distribution_type: 'maven'
+version: '2.7.4'
+project: 'aaf-authz'
+log_dir: 'aaf-authz-maven-stage-master/540/'
# This TAG <version>2.7.0-SNAPSHOT</version> is here to help remember to change this file. Keep it up to date with the following "real" entries:
major=2
minor=7
-patch=1
+patch=4
base_version=${major}.${minor}.${patch}