Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAP-101] Add Golang request signature example #61

Merged
merged 6 commits into from
Apr 13, 2022

Conversation

tl-marco-tormento
Copy link
Contributor

@tl-marco-tormento tl-marco-tormento commented Apr 13, 2022

#51 for Golang

Golang request signature example

Sends a signed request to https://api.truelayer-sandbox.com/test-signature.

Run

Set environment variables:

  • ACCESS_TOKEN A valid JWT access token for payments scope docs.
  • KID The certificate/key UUID for associated with your public key uploaded to console.truelayer.com.
  • PRIVATE_KEY Private key PEM string that matches the KID & uploaded public key.
    Should have the same format as this example private key.
$ go run main.go
Sending...
204 ✓

@tl-marco-tormento tl-marco-tormento marked this pull request as ready for review April 13, 2022 09:01
@tl-marco-tormento tl-marco-tormento requested a review from a team as a code owner April 13, 2022 09:01
@tl-marco-tormento tl-marco-tormento requested a review from a team April 13, 2022 09:01
Copy link
Contributor

@alexheretic alexheretic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

$ go run main.go
Sending...
204 ✓

@tl-marco-tormento tl-marco-tormento merged commit 20b6539 into main Apr 13, 2022
@tl-marco-tormento tl-marco-tormento deleted the golang-sign-request branch April 13, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants