Skip to content

Commit 038d3b1

Browse files
authored
fix: 2.5.1
fix: 2.5.1
2 parents 7c79939 + aed15d9 commit 038d3b1

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

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-oidc-check-op",
3-
"version": "1.15.12",
3+
"version": "1.15.13",
44
"description": "SPID OIDC Conformance Test Tool for OP",
55
"main": "spid-oidc-check-op",
66
"author": "Michele D'Amico (damikael) - AgID",

src/test/2.5.1.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,31 @@ class Test_2_5_1 extends TestAuthResponse {
66
errorValuePermissed = [
77
"access_denied",
88
"invalid_client",
9+
"unauthorized_client",
910
"invalid_request",
1011
"invalid_scope",
1112
"server_error",
1213
"temporary_unavailable",
14+
"unsupported_response_type",
15+
"login_required",
16+
"consent_required",
17+
"request_uri_not_supported",
18+
"registration_not_supported",
19+
"invalid_request_object"
1320
];
21+
1422
constructor(metadata, authrequest, authresponse) {
1523
super(metadata, authrequest, authresponse);
1624
this.num = "2.5.1";
1725
this.description =
18-
'the value of error MUST be one of ["access_denied", "invalid_client", "invalid_request", "invalid_scope", "server_error", "temporary_unavailable"]';
26+
'the value of error MUST be one of ' + JSON.stringify(this.errorValuePermissed, null, 3);
1927
this.validation = "automatic";
2028
}
2129

2230
exec() {
2331
super.exec();
2432
if (!this.errorValuePermissed.includes(this.authresponse.error)) {
25-
throw 'The value of error is not one of "access_denied", "invalid_client", "invalid_request", "invalid_scope", "server_error", "temporary_unavailable"';
33+
throw 'The value of error is not one of ' + JSON.stringify(this.errorValuePermissed, null, 3);
2634
} else {
2735
this.notes = this.authresponse.error;
2836
return true;

0 commit comments

Comments
 (0)