Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

218
Vistas
use of hardcoded password error in checkmarx
exports.authorizePassword = function(auth) {
            return function(_ref2) {
                var authActions = _ref2.authActions,
                    schema = auth.schema,
                    name = auth.name,
                    username = auth.username,
                    password = auth.password,
                    passwordType = auth.passwordType,
                    clientId = auth.clientId,
                    clientSecret = auth.clientSecret,
                    form = {
                        grant_type: "password",
                        scope: auth.scopes.join(" ")
                    }, query = {}, headers = {};
                return "basic" === passwordType ? headers.Authorization = "Basic " + (0, _utils.btoa)(username + ":" + password) : ((0, _assign2.
                default)(form, {
                    username: username
                }, {
                    password: password
                }), "query" === passwordType ? (clientId && (query.client_id = clientId), clientSecret && (query.client_secret = clientSecret)) : headers.Authorization = "Basic " + (0, _utils.btoa)(clientId + ":" + clientSecret)), authActions.authorizeRequest({
                    body: (0, _utils.buildFormData)(form),
                    url: schema.get("tokenUrl"),
                    name: name,
                    headers: headers,
                    query: query,
                    auth: auth
                })
            }

This is my code and checkmarx gives error near this line return "basic" === passwordType says use of hard coded password. There's no hardcoded password anywhere. Please help

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda