Apply suggestions from code review

Co-authored-by: Taus <tausbn@github.com>
This commit is contained in:
Jorge
2021-10-28 17:34:11 +02:00
committed by GitHub
parent ef4a27ff8c
commit f4d63cc5e7
2 changed files with 4 additions and 4 deletions

View File

@@ -317,12 +317,12 @@ module JWTEncoding {
abstract DataFlow::Node getKey();
/**
* Gets the algorithm Node used in the encoding.
* Gets the argument for the algorithm used in the encoding.
*/
abstract DataFlow::Node getAlgorithm();
/**
* Tries to get the algorithm used in the encoding.
* Gets a string representation of the algorithm used in the encoding.
*/
abstract string getAlgorithmString();
}
@@ -359,7 +359,7 @@ class JWTEncoding extends DataFlow::Node instanceof JWTEncoding::Range {
/** Provides classes for modeling JWT decoding-related APIs. */
module JWTDecoding {
/**
* A data-flow node that collects methods encoding a JWT token.
* A data-flow node that collects methods decoding a JWT token.
*
* Extend this class to model new APIs. If you want to refine existing API models,
* extend `JWTDecoding` instead.

View File

@@ -7,7 +7,7 @@ private module Authlib {
/** Gets a reference to `authlib.jose.(jwt|JsonWebToken)` */
private API::Node authlibJWT() {
result in [
API::moduleImport("authlib.jose").getMember("jwt"),
API::moduleImport("authlib").getMember("jose").getMember("jwt"),
API::moduleImport("authlib.jose").getMember("JsonWebToken").getReturn()
]
}