Code Monkey home page Code Monkey logo

Comments (5)

simioni87 avatar simioni87 commented on August 17, 2024

Hi Regala
No that is not correct. You confound it with "match and replace" which does not work.
As it is common in API's we use the first section in path to describe the object and followed by the value of the object. In your example the object is "users" and the value is "12345" (or "admin"). Means you want to replace the parameter called "users" with the value "admin". So just type in "users" as parameter name ;-)
Please see also my example on the Readme page: https://github.com/simioni87/auth_analyzer#replacement-location

Have fun!

from auth_analyzer.

Regala avatar Regala commented on August 17, 2024

OOOOOH. You're totally right, and I overlooked the parameter replacement section for some reason 🙈 Thanks!!

from auth_analyzer.

Regala avatar Regala commented on August 17, 2024

(p.s. in that particular example in the readme, presenet should be present. Thanks again, keep up the good work ❤️ )

from auth_analyzer.

simioni87 avatar simioni87 commented on August 17, 2024

Thank you too :) Your issue has disclosed the bug that the path replacement does not correctly work if the parameter value does not ends with a slash. As we see in your example GET /api/v1/smart/users/12345/admin/1.1
Will be fixed with the next release.
Thaaanks :)

from auth_analyzer.

Regala avatar Regala commented on August 17, 2024

Hi @simioni87 , hope all is well!

I've been doing some more tests with the extension and often a scenario I encounter is this:

  • Having a replacement string occurring in multiple places, with different "parameter" names
    so e.g. in the url it might be passed as ?organizationId, where as in the cookie it's under org= and in the POST body is id=

In this scenarios the easiest thing to do would be to just apply a "match and replace all" rule on the request, regardless of the parameter name. Is this something possible to do at the moment?

This is a feature I still use heavily on Autorepeater, where the following three options shine:
image

Let me know what you think, thanks!

from auth_analyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.