microsoftgraph / microsoftgraph/msgraph-sdk-python

Investigate and fix Device code credential flow

Open
#630 0 comments 1 reaction 1 assignee View on GitHub

@shemogumbe is already working on this.

Since Mar 14, 2024.

enhancement
Dominant language
Python
Stars
630
Forks
96
Avg merge
15h 20m
Merged PRs (30d)
3

Description

Current Behavior
Working with device code credetial flow throws an error at getting the token.
Follow this tutorial
Working device code credential flow, the script takes over 20 minutes and fails with token has expired error, or fails at there is no token to replace in the URLReplaceHandler

Solution
Working with device code flow, enable delegated authentication and be able to run .me paths and get responses

alternatives considered
Delegated permission works with InteractiveBrowser flow.
https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad&tutorial-step=3
Giving
my_profile_and_messages

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.