-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Avviso SPID n°19 only with public full operator #81
Conversation
Example of PR titles that include pivotal stories:
New dependencies added: request-ipAuthor: Petar Bojinov Description: A small node.js module to retrieve the request's IP address Homepage: https://github.com/pbojinov/request-ip
|
spidTestEnvUrl: "https://spid-testenv2:8088", | ||
spidValidatorUrl: "http://localhost:8080", | ||
// spidValidatorUrl: "http://localhost:8080", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment to explain why this line is commented. Later we can fix the spid-saml-check
docker image to re-enable that configuration.
src/example.ts
Outdated
@@ -72,13 +77,29 @@ const serviceProviderConfig: IServiceProviderConfig = { | |||
], | |||
name: "Required attrs" | |||
}, | |||
spidCieUrl: "https://idserver.servizicie.interno.gov.it:8443/idp/shibboleth", | |||
spidCieUrl: "https://idserver.servizicie.interno.gov.it:443/idp/shibboleth", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the new test endpoint for CIE metadata https://preproduzione.idserver.servizicie.interno.gov.it/idp/shibboleth?Metadata
Reference from here
src/example.ts
Outdated
@@ -116,7 +137,7 @@ app.use(passport.initialize()); | |||
// Create a Proxy to forward local calls to spid validator container | |||
const proxyApp = express(); | |||
proxyApp.get("*", (req, res) => { | |||
res.redirect("http://spid-saml-check:8080" + req.path); | |||
res.redirect("localhost:8080" + req.path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works only with an active spid-saml-check
src/utils/middleware.ts
Outdated
const CommonExtension = t.partial({ | ||
FiscalCode: t.string, | ||
IPACode: t.string, | ||
VATNumber: t.string | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fileds are all required for a Gestore
const CommonExtension = t.partial({ | |
FiscalCode: t.string, | |
IPACode: t.string, | |
VATNumber: t.string | |
}); | |
const CommonExtension = t.interface({ | |
FiscalCode: t.string, | |
IPACode: t.string, | |
VATNumber: t.string | |
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR allows compliance with Avviso SPID n° 19 v4 only for the
PublicServicesFullOperator
extension.