File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ ENV NODE_HTTPS_PORT=${EXPOSE_HTTPS_PORT}
6363
6464# Build validator
6565RUN 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
Original file line number Diff line number Diff line change 55RUN 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
1414RUN 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
3333EXPOSE 8080
3434
35- RUN chown -R validator:validator /spid-validator /*
35+ RUN chown -R validator:validator /spid-saml-check /*
3636
3737USER validator
3838
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments