GithubHelp home page GithubHelp logo

Comments (7)

jthake avatar jthake commented on June 28, 2024 1

Re-opening as I'm going to add a stream lined flow for the OAuth2 Postman functionality.

from microsoftgraph-postman-collections.

jthake avatar jthake commented on June 28, 2024 1

Thanks for the tip. i'll change that.

from microsoftgraph-postman-collections.

jthake avatar jthake commented on June 28, 2024

No. this only works when straight user name and password. As per the readme, its not recommended with production environments where things like MFA would be configured. You can obtain a developer environment by signing up for the Office 365 developer program. https://developer.microsoft.com/en-us/office/dev-program

from microsoftgraph-postman-collections.

jthake avatar jthake commented on June 28, 2024

Actually sorry, you can achieve this by using the native OAuth2 flow. It's a little more configuration
https://learning.getpostman.com/docs/postman/sending_api_requests/authorization/#oauth-20

You have to use the endpoints from your application in portal.azure.com to do this. Once you have the access token you can add it to your environment variables. This uses a UI to sign the user in.

The other way is to go into Graph Explorer, sign in, use developer console and type tokenPlease()

from microsoftgraph-postman-collections.

pmatthews05 avatar pmatthews05 commented on June 28, 2024

Thanks @jthake-msft. I wasn't going to be using this on the production environment, it was for our test environment which mimic's our production environment setup. Unfortunately I have no control of turning off MFA / OKTA in the test environment either. I'll check out the OAuth2 flow. Again thank you.

from microsoftgraph-postman-collections.

jthake avatar jthake commented on June 28, 2024

@pmatthews05 I have written steps now on how to do this. Little bit more work to get going. Please give me any feedback here,

https://github.com/microsoftgraph/microsoftgraph-postman-collections/blob/master/README.md#setting-up-on-behalf-of-delegated-access

from microsoftgraph-postman-collections.

pmatthews05 avatar pmatthews05 commented on June 28, 2024

Hi @jthake-msft ,
Sorry it's taken me a couple of days to get round to this. I have tested your README.md and it is all correct apart from the callback URL should be "https://app.getpostman.com/oauth2/callback" not "https://www.getpostman.com/oauth2/callback" if you have followed Day 9 correctly.

from microsoftgraph-postman-collections.

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.