microsoft / microsoft/kiota-python

[Bug] BaseBearerTokenAuthenticationProvider.authenticate_request does not refresh token with authorization header is present

Open
#237 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #238 by @michaeldcanady — closed without merging
enhancement WIP
Dominant language
Python
Stars
31
Forks
39
Avg merge
11h 45m
Merged PRs (30d)
42

Description

Is your feature request related to a problem? Please describe.
When authentication a request the method authenticate_request fails to refresh an expired JWT token.

Describe the solution you'd like
once expired authenticate_request should retrieve a new token.

Describe alternatives you've considered
N/A

Additional context
N/A

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.

Research direction

Start at BaseBearerTokenAuthenticationProvider.authenticate_request and inspect how it handles an expired JWT when an authorization header is present. Done means the method retrieves a new token instead of failing to refresh the expired token, with behavior checked against the existing authentication tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.