# Servis Tüketimi ## **Access Token** ile servis çağırma ```plantuml @startuml actor User participant Gateway participant IAM participant Resource autonumber User->Gateway: Service Request Gateway->IAM: Token Validation IAM->Gateway: Valid Token Gateway->Gateway: Apply Modifier(s) Gateway->Gateway: Rate Limit Check Gateway->IAM: Resource Authorization IAM->IAM: Permission Check IAM->IAM: Privilege(s) Check IAM->Gateway: Authorize to Resource Gateway->Resource: Consume Resource Resource->Gateway: Return Resource Gateway->User: Return Resource Gateway->Gateway: Update Rate Limit @enduml ``` ## Senaryolar Servis tüketiminde hem kullanıcı doğrulama ve yetkilendirme, hem de arka sevislere yönlendirmede temel dört parametre ile hareket edilir. ### Senaryo **1** | No | Senaryo | Customer | Scope | User | Client | | --- | ------------------------------------------------------------------------------------------------------------------- | -------- | ----------- | ----- | ---------- | | 1 | Uğur adlı bireysel müşteri kendi hesaplarına erişmek için web internet bankacılığı uygulamasını kullanır. | Uğur | Uğur | Uğur | Web | #### Sample Request ##### From Client GET api.burgan.com.tr/accounts Customer: **Uğur** Authorization: **Bearer 2YotnFZFEjr1zCsicMWpAA...** ##### To Source GET api.burgan.com.tr/accounts Customer: **Uğur** User: **Uğur** Scope: **Uğur** Client: **burgan_web_ib** ### Senaryo **2** | No | Senaryo | Customer | Scope | User | Client | | --- | ------------------------------------------------------------------------------------------------------------------- | -------- | ----------- | ----- | ---------- | | 2 | Ahmet adlı banka çalışanı Uğur adlı bireysel müşteri hesaplarına erişmek için çağrı merkezi uygulamasını kulllanır. | Uğur | Burgan Bank | Ahmet | Backoffice | #### Sample Request ##### From Client GET api.burgan.com.tr/accounts Customer: **Uğur** Authorization: **Bearer 2YotnFZFEjr1zCsicMWpAA...** ##### To Source GET api.burgan.com.tr/accounts Customer: **Uğur** User: **Ahmet** Scope: **BurganBank** Client: **Backoffice** ### Senaryo **3** | No | Senaryo | Customer | Scope | User | Client | | --- | ------------------------------------------------------------------------------------------------------------------- | -------- | ----------- | ----- | ---------- | | 3 | Ahmet adlı banka çalışanı kendi hesaplarına erişmek için internet bankacılığı uygulamasını kullanır | Ahmet | Ahmet | Ahmet | Mobil | #### Sample Request ##### From Client GET api.burgan.com.tr/accounts Customer: **Ahmet** Authorization: **Bearer 2YotnFZFEjr1zCsicMWpAA...** ##### To Source GET api.burgan.com.tr/accounts Customer: **Ahmet** User: **Ahmet** Scope: **Ahmet** Client: **burgan_mobile_ib** ### Senaryo **4** | No | Senaryo | Customer | Scope | User | Client | | --- | ------------------------------------------------------------------------------------------------------------------- | -------- | ----------- | ----- | ---------- | | 4 | Selma adlı Migros çalışanı Migros hesaplarına erişmek için internet bankacılığı uygulamasını kullanır | Migros | Migros | Selma | Mobil || #### Sample Request ##### From Client GET api.burgan.com.tr/accounts Customer: **Migros** Authorization: **Bearer 2YotnFZFEjr1zCsicMWpAA...** ##### To Source GET api.burgan.com.tr/accounts Customer: **Migros** User: **Selma** Scope: **Migros** Client: **burgan_mobile_ib** ### Senaryo **5** | No | Senaryo | Customer | Scope | User | Client | | --- | ------------------------------------------------------------------------------------------------------------------- | -------- | ----------- | ----- | ---------- | | 5 | Uğur adlı bireysel müşteri hesaplarına erişmek için Akbank internet bankacılığı uygulamasını BKM üzerinden kullanır | Uğur | Uğur | Uğur | BKM\Akbank | #### Sample Request ##### From Client GET api.burgan.com.tr/accounts X-TPP-Code: **Akbank** X-ASPSP-Code: **BurganBank** X-Access-Token: **Bearer 2YotnFZFEjr1zCsicMWpAA...** ##### To Source GET api.burgan.com.tr/accounts Customer: **Uğur** User: **Uğur** Scope: **Uğur** Client:**BKM\Akbank**
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up