Skip to content

Commit f4d63cc

Browse files
jorgectftausbn
andauthored
Apply suggestions from code review
Co-authored-by: Taus <[email protected]>
1 parent ef4a27f commit f4d63cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/ql/src/experimental/semmle/python/Concepts.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ module JWTEncoding {
317317
abstract DataFlow::Node getKey();
318318

319319
/**
320-
* Gets the algorithm Node used in the encoding.
320+
* Gets the argument for the algorithm used in the encoding.
321321
*/
322322
abstract DataFlow::Node getAlgorithm();
323323

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

python/ql/src/experimental/semmle/python/libraries/Authlib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ private module Authlib {
77
/** Gets a reference to `authlib.jose.(jwt|JsonWebToken)` */
88
private API::Node authlibJWT() {
99
result in [
10-
API::moduleImport("authlib.jose").getMember("jwt"),
10+
API::moduleImport("authlib").getMember("jose").getMember("jwt"),
1111
API::moduleImport("authlib.jose").getMember("JsonWebToken").getReturn()
1212
]
1313
}

0 commit comments

Comments
 (0)