-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-twitter-generic-example
- Loading branch information
Showing
10 changed files
with
277 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
version: 2 | ||
services: | ||
# The stripe service supports connecting to Stripe's API via a Bearer token. | ||
# A Bearer token can be used | ||
# | ||
# More information about this service can be found here: | ||
# https://stripe.com/docs/api/authentication | ||
stripe: | ||
connector: generic_http | ||
listenOn: tcp://0.0.0.0:8071 | ||
credentials: | ||
token: | ||
from: keychain | ||
get: service#stripe/token | ||
config: | ||
headers: | ||
Authorization: Bearer {{ .token }} | ||
forceSSL: true | ||
authenticateURLsMatching: | ||
- ^http[s]*\:\/\/api\.stripe\.com* | ||
# The stripe-account service supports a Bearer token and a Stripe Account | ||
# header. This service can be used if you want to securely connect a client's | ||
# account to the Stripe API using Secretless. | ||
# | ||
# More information about this service can be found here: | ||
# https://stripe.com/docs/api/connected_accounts | ||
stripe-account: | ||
connector: generic_http | ||
listenOn: tcp://0.0.0.0:8081 | ||
credentials: | ||
token: | ||
from: keychain | ||
get: service#stripe/token | ||
stripe_account: | ||
from: keychain | ||
get: service#stripe/account-id | ||
config: | ||
headers: | ||
Authorization: Bearer {{ .token }} | ||
Stripe-Account: "{{ .stripe_account }}" | ||
forceSSL: true | ||
authenticateURLsMatching: | ||
- ^http[s]*\:\/\/api\.stripe\.com* | ||
# The stripe-idempotency service supports a Bearer token and an | ||
# Indempotency-Key header. This is useful when an API call is disrupted in | ||
# transit and you do not receive a response. | ||
# | ||
# More information about this service can be found here: | ||
# https://stripe.com/docs/api/idempotent_requests | ||
stripe-idempotency: | ||
connector: generic_http | ||
listenOn: tcp://0.0.0.0:8091 | ||
credentials: | ||
token: | ||
from: keychain | ||
get: service#stripe/token | ||
idempotency_key: | ||
from: keychain | ||
get: service#stripe/indempotency-key | ||
config: | ||
headers: | ||
Authorization: Bearer {{ .token }} | ||
Idempotency-Key: "{{ .idempotency_key }}" | ||
forceSSL: true | ||
authenticateURLsMatching: | ||
- ^http[s]*\:\/\/api\.stripe\.com* | ||
# The stripe-account-dempotency service supports a Bearer token, Stripe | ||
# Account and Idempotency-Key header. This service can be used if an API call | ||
# to a Stripe Account is disrupted in transit and does not receive a response. | ||
stripe-account-idempotency: | ||
connector: generic_http | ||
listenOn: tcp://0.0.0.0:9001 | ||
credentials: | ||
token: | ||
from: keychain | ||
get: service#stripe/token | ||
stripe_account: | ||
from: keychain | ||
get: service#stripe/account-id | ||
idempotency_key: | ||
from: keychain | ||
get: service#service/idempotency-key | ||
config: | ||
headers: | ||
Authorization: Bearer {{ .token }} | ||
Stripe-Account: "{{ .stripe_account }}" | ||
Idempotency-Key: "{{ .idempotency_key }}" | ||
forceSSL: true | ||
authenticateURLsMatching: | ||
- ^http[s]*\:\/\/api\.stripe\.com* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.