如何将IHttpApi接口定义中的参数传给TokenProvider
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- api, authentication
Research direction
Start by tracing how IHttpApi parameters are passed into ApiRequestContext and ApiParametersContext, and how TokenProvider is resolved through dependency injection. Define whether appName can reach TokenProvider for dynamic token selection, then confirm the supported behavior and its completion criteria with the maintainers.
Written by the indexing model from the issue text.
Description
需求是需要根据appName参数动态切换token。
目前是想通过在TokenProvider中获取参数值后去请求token,但是ApiRequestContext和ApiParametersContext都无法通过依赖注入获取到。
需要如何实现此功能
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 445
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnetcore/WebApiClient
-
question 等待反馈(needs feedback)
Difficulty 4/5 3-5 days Newbie friendliness 25/100
dotnetcore/WebApiClient#274 · 1 comment ·
-
question
Difficulty 4/5 3-5 days Newbie friendliness 30/100
dotnetcore/WebApiClient#271 · 2 comments ·
-
在原有接口方法调用上添加其他参数的方案? Open等待反馈(needs feedback)
Difficulty 5/5 Over a week Newbie friendliness 20/100
dotnetcore/WebApiClient#264 · 1 comment ·
-
new idea
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dotnetcore/WebApiClient#261 · 5 comments ·
-
等待反馈(needs feedback)
Difficulty 4/5 3-5 days Newbie friendliness 30/100
dotnetcore/WebApiClient#248 · 1 comment ·
All issues in dotnetcore/WebApiClient
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·