-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
489 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const TestMetadata = require('../server/lib/test/TestMetadata.js'); | ||
|
||
class Test_1_5_10 extends TestMetadata { | ||
|
||
constructor(metadata) { | ||
super(metadata); | ||
this.num = "1.5.10"; | ||
this.description = "The id_token_signing_alg_values_supported MUST NOT contain ['none', 'HS256', 'HS384', 'HS512']"; | ||
this.validation = "automatic"; | ||
} | ||
|
||
async exec() { | ||
super.exec(); | ||
|
||
if(this.metadata.configuration.id_token_signing_alg_values_supported==null | ||
|| this.metadata.configuration.id_token_signing_alg_values_supported=='') { | ||
this.notes = this.metadata.configuration.id_token_signing_alg_values_supported; | ||
throw("the claim id_token_signing_alg_values_supported is not present"); | ||
} | ||
|
||
if(this.metadata.configuration.id_token_signing_alg_values_supported.includes('none')) { | ||
this.notes = this.metadata.configuration.id_token_signing_alg_values_supported; | ||
throw("the claim id_token_signing_alg_values_supported must not contain 'none'"); | ||
} | ||
|
||
if(this.metadata.configuration.id_token_signing_alg_values_supported.includes('HS256')) { | ||
this.notes = this.metadata.configuration.id_token_signing_alg_values_supported; | ||
throw("the claim id_token_signing_alg_values_supported must not contain 'HS256'"); | ||
} | ||
|
||
if(this.metadata.configuration.id_token_signing_alg_values_supported.includes('HS384')) { | ||
this.notes = this.metadata.configuration.id_token_signing_alg_values_supported; | ||
throw("the claim id_token_signing_alg_values_supported must not contain 'HS384'"); | ||
} | ||
|
||
if(this.metadata.configuration.id_token_signing_alg_values_supported.includes('HS512')) { | ||
this.notes = this.metadata.configuration.id_token_signing_alg_values_supported; | ||
throw("the claim id_token_signing_alg_values_supported must not contain 'HS512'"); | ||
} | ||
|
||
|
||
this.notes = this.metadata.configuration.id_token_signing_alg_values_supported; | ||
return true; | ||
|
||
} | ||
|
||
} | ||
|
||
module.exports = Test_1_5_10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
const TestMetadata = require('../server/lib/test/TestMetadata.js'); | ||
|
||
class Test_1_5_11 extends TestMetadata { | ||
|
||
constructor(metadata) { | ||
super(metadata); | ||
this.num = "1.5.11"; | ||
this.description = "If present, the id_token_encryption_alg_values_supported MUST NOT contain ['RSA_1_5']"; | ||
this.validation = "automatic"; | ||
} | ||
|
||
async exec() { | ||
super.exec(); | ||
|
||
if(this.metadata.configuration.id_token_encryption_alg_values_supported==null | ||
|| this.metadata.configuration.id_token_encryption_alg_values_supported=='') { | ||
|
||
// encryption of id_token is optional | ||
this.notes = "the claim id_token_encryption_alg_values_supported is not present"; | ||
return true; | ||
|
||
//this.notes = this.metadata.configuration.id_token_encryption_alg_values_supported; | ||
//throw("the claim id_token_encryption_alg_values_supported is not present"); | ||
} | ||
|
||
if(this.metadata.configuration.id_token_encryption_alg_values_supported.includes('RSA_1_5')) { | ||
this.notes = this.metadata.configuration.id_token_encryption_alg_values_supported; | ||
throw("the claim id_token_encryption_alg_values_supported must not contain 'RSA_1_5'"); | ||
} | ||
|
||
this.notes = this.metadata.configuration.id_token_encryption_alg_values_supported; | ||
return true; | ||
|
||
} | ||
|
||
} | ||
|
||
module.exports = Test_1_5_11 |
Oops, something went wrong.