mirror of
https://github.com/github/codeql.git
synced 2026-02-01 07:42:57 +01:00
29 lines
708 B
Plaintext
29 lines
708 B
Plaintext
/**
|
|
* Provides classes for working with [Azure](https://github.com/Azure/azure-sdk-for-node) applications.
|
|
*/
|
|
|
|
import javascript
|
|
|
|
module Azure {
|
|
/**
|
|
* An expression that is used for authentication at Azure`.
|
|
*/
|
|
class Credentials extends CredentialsNode {
|
|
string kind;
|
|
|
|
Credentials() {
|
|
exists(DataFlow::CallNode mce |
|
|
mce =
|
|
DataFlow::moduleMember("ms-rest-azure",
|
|
["loginWithUsernamePassword", "loginWithServicePrincipalSecret"]).getACall()
|
|
|
|
|
this = mce.getArgument(0) and kind = "user name"
|
|
or
|
|
this = mce.getArgument(1) and kind = "password"
|
|
)
|
|
}
|
|
|
|
override string getCredentialsKind() { result = kind }
|
|
}
|
|
}
|