CyberSource / CyberSource/cybersource-rest-samples-java
Why are most samples still using HTTP Signature if it is being deprecated?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 35
- Forks
- 84
- Avg merge
- 37m
- Merged PRs (30d)
- 1
Description
Most samples are still configured to use Configuration.getMerchantDetails() for their properties. This still defualts to using the soon-to-be-deprecated http_signature authentication. You should set the default for this to "jwt"
I've noticed that if I do this, some API calls no longer work. For example, the sample in RetrieveCustomer.java works fine with the authenticationType property set to "jwt". However, I get an authorization error when attempting RetrievePaymentInstrument using the same credentials. Why?
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.
Research direction
Start with Configuration.getMerchantDetails() and compare the authentication settings used by RetrieveCustomer.java and RetrievePaymentInstrument. Run both samples with authenticationType set to "jwt" using the same credentials, then update the sample defaults so the affected calls work without authorization errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100