Session 5 - REST API Design, Development & Management _ API Security
Session 5 - REST API Design, Development & Management _ API Security
Management
Gateway
REST API Design, Development & Management
Mobile Banking Application
7. Secure Data
6. Transaction
authorised?
5. Who is the
caller of API?
1. Data Theft
2. Data Manipulation
3. Identity Theft
4. DOS attack
REST API Design, Development & Management
Data Security
Data
Protection Integrity
Authentication
Authorization
Functional Attacks
HTTP Header
Authorization: Encoded-Creds
API Consumer
HTTP Header
200 OK
401 Unauthorized
{Cre
dent
ials}
Credentials on
Phone
api.cowin.gov.in
}
entials
{ Cred
3rd Party apps and
websites HTTP
{Clear text credentials}
Basic Authentication
● Uses basic HTTP Header Authorization.
● Required credentials to be passed in every requests.
● Must be used with HTTPS.
/token {Credentials}
{Token}
/resource {Token}
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIx
MjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0Ij
oxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf3
6POk6yJV_adQssw5c
Base64 Base64
Payload
Header Signature
(Registered/Public/Private Claims)
Secret
Base64 Base64