Skip to content

Commit 1b82fb3

Browse files
authored
v.2.2.2
v.2.2.2
2 parents 87d44c0 + d976001 commit 1b82fb3

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ ENV NODE_HTTPS_PORT=${EXPOSE_HTTPS_PORT}
6363

6464
# Build validator
6565
RUN cd /spid-saml-check/src && \
66+
cp -R config-sample config && \
6667
cd client && npm install --silent && cd .. && \
6768
cd server && npm install --silent && cd .. && \
6869
npm run build

src/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ MAINTAINER Michele D'Amico, [email protected]
55
RUN useradd --user-group --create-home --shell /bin/false validator
66
77
# Set the working directory
8-
WORKDIR /spid-validator
8+
WORKDIR /src
99
10-
# Copy the current directory to /spid-validator
11-
ADD . /spid-validator
10+
# Copy the current directory to /spid-saml-check
11+
ADD . /spid-saml-check
1212
1313
# Update and install utilities
1414
RUN apt-get update && \
@@ -24,15 +24,15 @@ RUN apt-get install -y nodejs && \
2424
apt-get install -y build-essential
2525
2626
# Build validator
27-
RUN cd /spid-validator && \
27+
RUN cd /spid-saml-check && \
2828
cd client && npm install --suppress-warnings && cd .. && \
2929
cd server && npm install --suppress-warnings && cd .. && \
3030
npm run build
3131
3232
# Ports exposed
3333
EXPOSE 8080
3434
35-
RUN chown -R validator:validator /spid-validator/*
35+
RUN chown -R validator:validator /spid-saml-check/*
3636
3737
USER validator
3838

src/server/lib/saml-utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ class RequestParser {
661661
AttributeConsumingServiceIndex() { // only for type 1
662662
let doc = new DOMParser().parseFromString(this.request.xml);
663663
let requestAttributeConsumingServiceIndex = select("//samlp:AuthnRequest", doc)[0];
664-
if(requestAssertionConsumingServiceIndex!=null) requestAssertionConsumingServiceIndex = requestAssertionConsumingServiceIndex.getAttribute("AssertionConsumingServiceIndex")
665-
else requestAttributeConsumingServiceIndex = undefined;
664+
if(requestAttributeConsumingServiceIndex!=null) requestAttributeConsumingServiceIndex = requestAttributeConsumingServiceIndex.getAttribute("AttributeConsumingServiceIndex")
665+
else requestAttributeConsumingServiceIndex = undefined;
666666
return requestAttributeConsumingServiceIndex;
667667
}
668668

src/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spid-validator",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Tool for validating Service Provider compliance to SPID response from Identity Provider",
55
"main": "spid-validator",
66
"author": "Michele D'Amico (damikael) - AgID",

0 commit comments

Comments
 (0)