GithubHelp home page GithubHelp logo

Comments (10)

davidcoutadeur avatar davidcoutadeur commented on September 4, 2024 1

The new parameters: authenticationURL, usersURL and scope were mandatory.
I have made them optional.

With this last fix, I think the feature is ready. I am making the MR

from lsc-microsoft-graph-api-plugin.

davidcoutadeur avatar davidcoutadeur commented on September 4, 2024

@remk @rouazana could you review my patch for the configuration parameters?
(for info, I haven't tested yet, it just passes the compilation)

from lsc-microsoft-graph-api-plugin.

remk avatar remk commented on September 4, 2024

👍 it looks good to me

from lsc-microsoft-graph-api-plugin.

davidcoutadeur avatar davidcoutadeur commented on September 4, 2024

With the last patch, the code is functional on a customized tenant.

from lsc-microsoft-graph-api-plugin.

rouazana avatar rouazana commented on September 4, 2024

With the last patch, the code is functional on a customized tenant.

can you explain this fix? Anyway it could probably be rewritten without regxep

from lsc-microsoft-graph-api-plugin.

davidcoutadeur avatar davidcoutadeur commented on September 4, 2024

the default hard-coded scope during authentication was https://graph.microsoft.com/.default

However, this URL depends of the usersURL parameter. I made it built on the top of the users URL.

I didn't find documentation explaining if there could be other type of scopes. If so, maybe we would have to make it a completely distinct parameter.

PS: The regex is here for making sure there is no surnumerous / at the end of the users URL

from lsc-microsoft-graph-api-plugin.

rouazana avatar rouazana commented on September 4, 2024

thank you, I then prefer than we have a completely different scope parameter, it will make the intent clearer (and avoid this regexp ^^)

from lsc-microsoft-graph-api-plugin.

davidcoutadeur avatar davidcoutadeur commented on September 4, 2024

regexes are beautiful :)

Last patch create a new parameter for the scope. I have tested right now, it's working on my use case. (with customized endpoints and standard endpoints)

from lsc-microsoft-graph-api-plugin.

rouazana avatar rouazana commented on September 4, 2024

thank you, that's far better. We could avoid variable re-allocation, but it's not a big issue for me in this case.

Can you open a pull request so that we can merge it?

from lsc-microsoft-graph-api-plugin.

rouazana avatar rouazana commented on September 4, 2024

fixed in v1.1

from lsc-microsoft-graph-api-plugin.

Related Issues (3)

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.