ApigeeのServiceCalloutでbasic認証を使う | 瀬戸内の雲のように

ApigeeのServiceCalloutでbasic認証を使う

Posted: 2019-05-14


スポンサーリンク

目次

背景

以前にも別記事で紹介したApigeeですが、よく使う機能の一つに Service Callout があります。

これはApigeeの処理フローの中で別APIを実行するためのHTTPクライアント(curl的なもの)で、複数APIをまとめて実行する場合などによく使います。

今回はベーシック認証が必要なAPI
を使う場合の設定方法を紹介したいと思います。

 

手順概要

以下の手順を行います。

  1. 認証情報(ID/PW)のエンコード
  2. Apigeeの設定

以下、詳細です。

 

1. 認証情報(ID/PW)のエンコード

まずbasic認証に使うIDとパスワードの情報のエンコードを行います。
これはopensslコマンドが使える適当なLinuxサーバ上で行ってください。

以下、コマンドです。

# ID : muraken
# PW : mypassword
$ echo -n 'muraken:mypassword' | openssl base64
bXVyYWtlbjpteXBhc3N3b3Jk

 

2. Apigeeの設定

ServiceCalloutポリシーに以下のような設定を行ってください。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="true" enabled="true" name="basic-auth-callout-example">
    <DisplayName>basic-auth-callout-example</DisplayName>
    <Properties/>
    <Request clearPayload="true" variable="myRequest">
        <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
        <!-- basic認証の設定ここから -->
        <Set>
            <Headers>
                <!-- echo -n 'muraken:mypassword' | openssl base64 の結果 -->
                <Header name="Authorization">Basic bXVyYWtlbjpteXBhc3N3b3Jk</Header>
            </Headers>
        </Set>
        <!-- basic認証の設定まで -->
    </Request>
    <Response>calloutResponse</Response>
    <HTTPTargetConnection>
        <Properties/>
        <URL>https://test-api.example.com</URL>
    </HTTPTargetConnection>
</ServiceCallout>

これでservice calloutのときにbasic認証を使うことができます。


スポンサーリンク




コメント一覧

2022/05/21 02:36:30

Ebbeexictさん

where can i buy cialis online brand cialis with prescription https://dccialisxvf.com/


2022/05/21 07:14:24

gbqlqsxvさん

provigil generic provigil 200mg brand


2022/04/07 21:38:09

Fnenvunnyさん

generic viagra india viagra brands


2022/04/08 04:37:24

Ntfbfplugsさん

buy cheap cialis tadalafil citrate


2022/04/08 07:19:48

Dbngplugsさん

sildenafil citrate tablets 50 mg uses for sildenafil


2022/04/08 13:58:14

AndaAudircurnさん

what is cialis tadalafil used for mylan-tadalafil


2022/04/10 07:42:35

Crnnwongeさん

viagra online buy viagra now viagra prices viagra soft tablets


2022/04/10 13:14:20

Keezexictさん

sildenafil viagra vardenafil levitra and tadalafil cialis pharmaglobalrx tadalafil


2022/04/11 18:31:09

Fwbnvunnyさん

sildenafil tab 20mg forhims sildenafil review


2022/04/12 01:31:07

Nmioplugsさん

prescription drugs definitions is world pharmacy store legit


2022/04/12 04:09:42

Dennplugsさん

best drugstore liquid eyeliner discount pharmacy


2022/04/13 09:54:20

Fuupvunnyさん

viagra on sale viagra for sale in mexico


2022/04/13 17:08:12

Nbttplugsさん

cialis online free shipping cialis generic overnite shipping


2022/04/13 19:45:55

Dsnnplugsさん

drug costs Prasugrel


2022/04/14 01:24:15

AnuoAudircurnさん

canadian pharmacy ambien online pharmacy mexico


2022/04/15 18:28:23

Ckanwongeさん

levitra 20mg coupon half life of levitra


2022/04/16 18:39:04

Zbttplugsさん

ivermectin budgies ivermectin dosage for lyme disease


2022/04/16 03:05:48

Knrnexictさん

Rizact cialis super active


2022/04/16 10:46:49

Auupvunnyさん

is tadalafil available in the united states tadalafil 40 mg reviews


2022/04/16 21:42:06

Jtnnplugsさん

ivermectin dosage cats is ivermectin safe for pregnant mares


2022/04/17 03:04:09

AnnoAudircurnさん

cheap sildenafil online uk 30 mg sildenafil buy online


2022/04/18 19:52:16

Wevgwongeさん

creighton university pharmacy online drugstore beetle


2022/04/19 04:03:18

Enrnexictさん

cialis dapoxetine overnight shipping canada online doctor prescription cialis


2022/04/19 19:47:48

Ahhpvunnyさん

cialis 20 mg sell free shipping cialis usa


2022/04/20 03:13:44

nyyyplugsさん

levitra 20mg filmtabletten levitra coupon gsk


2022/04/20 06:01:12

Jnnyplugsさん

best time to take cialis 5mg dapoxetine with cialis


2022/04/20 10:31:31

AnuuAudircurnさん

the canadian pharmacy canada pharmacy


2022/04/22 01:51:55

Wnsnwongeさん

cialis vs viagra levitra levitra australia


2022/04/23 00:11:07

Ansnvunnyさん

online pharmacy tech certification qsymia online pharmacy canada


2022/04/22 10:23:16

Ennsexictさん

100mg generic sildenafil viagra to buy


2022/04/23 07:42:11

Ntcxplugsさん

canadian prescriptions compare rx prices


2022/04/23 10:27:47

Jmmplugsさん

wellbutrin xl canada pharmacy Ampicillin


2022/04/23 14:59:06

JyhAudircurnさん

doctor of pharmacy degree online rx health mart pharmacy


2022/04/25 06:51:13

Wnnhwongeさん

viagra generic canadian pharmacy canadian pharmacy adipex


2022/04/25 15:05:29

Eaaqexictさん

safe online pharmacies in canada longs drug store


2022/04/29 12:02:18

Anbnvunnyさん

sildenafil 110 mg troche sildenafil 20 mg dose https://sildenafilkiol.com/


2022/04/29 19:25:24

Nndnplugsさん

can american pharmacies fill a canadian prescription king pharmacy canada https://jzpharmacyukj.com/


2022/04/29 22:06:47

Jebplugsさん

100 viagra pill cheap real viagra canada https://sgiviagraikn.com/


2022/04/30 02:32:38

JyhgAudircurnさん

ivermectin for pigeons where can i get ivermectin for humans https://stromectolujlo.com/


2022/05/01 17:22:06

Wnbhwongeさん

levitra 20mg filmtabletten preisvergleich levitra copay assistance https://glevitrargu.com/


2022/05/02 01:28:04

Ebbexictさん

community pharmacy online class for pharmacy technician https://dtupharmyjn.com/


2022/05/03 21:38:33

Nndenplugsさん

levitra comercial levitra onset of action https://xclevitradb.com/


2022/05/04 00:14:54

Jebnplugsさん

good rx pharmacy discount card pricing of prescription drugs


2022/05/04 04:47:48

JolwAudircurnさん

viagra online cheap no prescription india viagra https://aviagrasbt.com/


2022/05/05 23:25:39

pyjwdivyさん

provigil ca generic provigil buy modafinil 200mg online cheap


2022/05/06 02:53:17

Ebbeexictさん

canadian cialis for sale order cialis online nb canada https://dccialisxvf.com/


2022/05/07 06:45:26

tywrufさん

long term effects of plaquenil https://keys-chloroquinehydro.com/


2022/05/09 08:45:37

Anbnvunnyさん

otc sildenafil citrate sildenafil after prostatectomy https://sildenafilkiol.com/


2022/05/09 18:14:53

Jebnplugsさん

envision rx pharmacy addictive prescription drugs


2022/05/09 22:51:38

JolwAudircurnさん

sildenafil 2.5 viagra online usa cheap https://aviagrasbt.com/


2022/05/11 11:46:53

Wnbhwongeさん

levitra cialis viagra online levitra onset of action https://glevitrargu.com/


2022/05/11 20:08:03

Ebbeexictさん

cialis&dapoxetine otc cialis https://dccialisxvf.com/


2022/05/14 03:08:47

Kristenさん

Opal


2022/05/14 11:07:11

Anbnvunnyさん

sildenafil 20 mg how many should i take discount sildenafil https://sildenafilkiol.com/


2022/05/14 11:14:22

EvaleenOaOaさん

18 month doctorate without dissertation
thesis dissertation writing services
what is a dissertation proposal


2022/05/14 18:17:12

Nndenplugsさん

levitra viagra or cialis which is better levitra or viagra https://xclevitradb.com/


2022/05/14 20:53:25

Jebnplugsさん

abusable prescription drugs Cytoxan


2022/05/15 06:15:47

MaggeeOaOaさん

dissertation prospectus example
dissertation help nz
writing dissertation and grant proposals


2022/05/15 08:19:58

kpdedufqさん

modafinil oral order modafinil 100mg sale purchase provigil


2022/05/16 05:15:43

RegineOaOaさん

all but dissertation completion programs
dissertation topics in education
phd dissertation help proposal


2022/05/16 15:22:01

Wnbhwongeさん

levitra super active how to get levitra https://glevitrargu.com/


2022/05/18 01:01:01

fypnbvlgさん

order provigil order modafinil without prescription buy provigil 100mg online


2022/05/18 10:51:38

fwwpiuytさん

http://erythromycinn.com/# erythromycin gel


2022/05/18 14:19:03

Anbnvunnyさん

apodefil sildenafil professional sildenafil citrate 100mg https://sildenafilkiol.com/


2022/05/18 21:28:58

Nndenplugsさん

levitra clinical data levitra price walmart https://xclevitradb.com/


2022/05/19 00:02:47

Jebnplugsさん

rx stands for pharmacy verified canadian pharmacies


2022/05/19 04:25:28

JolwAudircurnさん

buy viagra online with visa sildenafil cheap pills https://aviagrasbt.com/


2022/05/19 05:49:40

cgavoewsさん

provigil 200mg pill order provigil 200mg online


2022/05/20 10:54:52

pbcqvldzさん

provigil 200mg pill order modafinil 100mg online cheap modafinil oral


2022/05/19 16:10:25

tmbuqwkqさん

modafinil 200mg usa modafinil 200mg oral


2022/05/19 17:55:32

KirstiOaOaさん

best dissertation writing company
writing dissertation and grant proposals
education dissertation topics


2022/05/19 19:51:06

rivdfzhaさん

oral provigil 200mg


2022/05/20 14:16:08

zertidfeさん

erythromycin abbreviation erythromycin for fish tanks


2022/05/20 18:32:25

Wnbhwongeさん

levitra para que sirve achat levitra generique france https://glevitrargu.com/



コメントを投稿する


お名前


コメント内容





TOP back