AdobeDocs / AdobeDocs/adobeio-auth

C# JWT Sample - RestSharp v107 Breaking Changes

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
36
Forks
65
PR merge metrics
No merged PRs in 30d

Description

I'm posting this as an issue so that hopefully other folks who ran into this issue can find it, and I'm not sure if PRs are welcome here. I appreciate that the sample exists and it has been reliable for quite a while. This is the sample in question.

https://github.com/AdobeDocs/adobeio-auth/blob/stage/JWT/samples/adobe-jwt-dotnet/Program.cs

This line should be changed to use RestReponse instead of IRestResponse

https://github.com/AdobeDocs/adobeio-auth/blob/2582edf24ec2b6b9312e0b9041e0f61c9e4fe4e1/JWT/samples/adobe-jwt-dotnet/Program.cs#L62

This line should be changed from

request.AddParameter("multipart/form-data; boundary=----boundary",

to

`request.AddParameter("multipart/form-data",`

https://github.com/AdobeDocs/adobeio-auth/blob/2582edf24ec2b6b9312e0b9041e0f61c9e4fe4e1/JWT/samples/adobe-jwt-dotnet/Program.cs#L55

These were the only tweaks I had to make to get back up and running, at least in regard to the JWT auth part.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open JWT/samples/adobe-jwt-dotnet/Program.cs, especially the lines linked around 55 and 62, and compare them with RestSharp v107 usage. Update the two named API calls, then verify that the JWT authentication sample builds and runs successfully with the current RestSharp version.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
documentation
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.