SlideShare a Scribd company logo
Mobile	Authentication	for	iOS	
Applications
Welcome!
• Agenda
• Stormpath 101 (5 mins)
• Get Started with iOS (25 mins)
• Q&A (30 mins)
• Kaitlyn Barnard
Marketing
• Edward Jiang
iOS Developer Evangelist
Speed to Market & Cost Reduction
• Complete Identity solution out-of-the-box
• Security best practices and updates by default
• Clean & elegant API/SDKs
• Little to code, no maintenance
Stormpath User Management
User	Data
User	
Workflows Google	ID
Your	Applications
Application SDK
Application SDK
Application SDK
ID	Integrations
Facebook
Active	
Directory
SAML
Let’s	talk	about	
Authentication
Mobile Authentication for iOS Applications - Stormpath 101
Authentication
Proving You Are Who You Say You Are
Common	Methods	of	
Authentication
Basic Authentication
Basic Authentication
GET /resource HTTP/1.1
Authorization: Basic 3CjvTdI30yoMS1xr3byzuz
3CjvTdI30yoMS1xr3byzuz =
Base64(“username:password”)
Session Authentication
Username Password SessionID
edjiang TxGA2UwvQ9qFTyzK 4zyCMdpxbtPXWgC8
demouser 5uGGNsn253UZRpbU kRqVCcqmwgEhkaH9
Server-Based Authentication
• Easy to use and implement
• Auth details are sent on every request
• Auth details do not expire
• Hard to scale, as verifying a request needs access to
central database
OAuth 2	Token	
Authentication
OAuth 2 Token Authentication
POST /oauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
grant_type=password&
username=username&
password=password
{
"access_token": “eyJqdGkiOiI2UUxkc0xKeFlIZnU4M2…”,
"refresh_token": “eyJqdGkiOiI2UUxkc0h6c2RoTXZWRV…”,
"token_type": "Bearer",
"expires_in": 3600
}
OAuth 2 Token Authentication
GET /me HTTP/1.1
Authorization: Bearer eyJqdGkiOiI2UUxkc0xKeI…
{
"email": "edward@stormpath.com",
"givenName": "Edward",
"surname": "Jiang",
"fullName": "Edward Jiang”,
}
What is this token?
eyJqdGkiOiI2UUxkc0xKeFa…
Header
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXV
CJ9.
{
"typ": "JWT",
"alg": "HS256"
}
It’s a JSON Web Token!
Body
eyJpc3MiOiJodHRwczovL2V4YW1wbGU
uY29tIiwic3ViIjoidXNlcm5hbWUiLCJuYm
YiOjE0NjIzMDcyNTgsImV4cCI6MTQ2Mj
MxMDg1OCwiaWF0IjoxNDYyMzA3MjU4
fQ.
Signature
XcRsBv9qQUgmZwXmEyb1sa1M2GvIepy5r
DKR5WmEpn0
HS256(header + “.” + body,
signingKey)
{
"iss":
"https://example.com",
"sub": "username",
"nbf": 1462307258,
"exp": 1462310858,
"iat": 1462307258
}
Token Authentication
• More Secure
o Auth details are sent on every request, BUT!
o Auth token expires
• Easy to scale, as servers can verify a token with the signing
key
• Extensible
o Scale across multiple backend services
o Can embed information in the JSON
LET’S LOOK AT SOME CODE!
iOS Resources
• Stormpath Launches Mobile Support
https://stormpath.com/blog/stormpath-mobile-support-ios-android/
• Tutorial: Build an iOS Application with Stormpath
https://stormpath.com/blog/build-note-taking-app-swift-ios
• Stormpath iOS SDK
https://github.com/stormpath/stormpath-sdk-ios
• iOS Example Application
https://github.com/stormpath/stormpath-ios-notes-example
QUESTIONS?
THANK YOU

More Related Content

PPTX
Multi-Tenancy with Spring Boot
PPTX
JWTs for CSRF and Microservices
PPTX
Secure API Services in Node with Basic Auth and OAuth2
PPTX
Stormpath 101: Spring Boot + Spring Security
PPTX
Token Authentication in ASP.NET Core
PPTX
How to Use Stormpath in angular js
PPTX
Spring Boot Authentication...and More!
PPTX
Browser Security 101
Multi-Tenancy with Spring Boot
JWTs for CSRF and Microservices
Secure API Services in Node with Basic Auth and OAuth2
Stormpath 101: Spring Boot + Spring Security
Token Authentication in ASP.NET Core
How to Use Stormpath in angular js
Spring Boot Authentication...and More!
Browser Security 101

What's hot (20)

PDF
JWTs in Java for CSRF and Microservices
PPTX
REST API Security: OAuth 2.0, JWTs, and More!
PDF
Securing Web Applications with Token Authentication
PPTX
Mobile Authentication for iOS Applications
PPTX
Building a document e-signing workflow with Azure Durable Functions
PDF
The Ultimate Guide to Mobile API Security
PDF
O365Con18 - Azure Active Directory - Sasha Kranjac & Mustafa Toroman
PDF
O365Con18 - Red Team vs Blue Team - Sasha Kranjac & Mustafa Toroman
PPTX
Spring Security
PDF
Authentication: Cookies vs JWTs and why you’re doing it wrong
PPTX
Azure Key Vault with a PaaS Architecture and ARM Template Deployment
PPTX
ApacheCon 2014: Infinite Session Clustering with Apache Shiro & Cassandra
PDF
MongoDB World 2019: MongoDB Atlas Security 101 for Developers
PDF
What are JSON Web Tokens and Why Should I Care?
PPTX
WSO2Con USA 2017: Building a Secure Enterprise
PPTX
Zero Credential Development with Managed Identities
PDF
Super simple application security with Apache Shiro
PPTX
Zero Credential Development with Managed Identities for Azure resources
PDF
Colabora.dk - Azure PTA vs ADFS vs Desktop SSO
PPTX
Instant Security & Scalable User Management with Spring Boot
JWTs in Java for CSRF and Microservices
REST API Security: OAuth 2.0, JWTs, and More!
Securing Web Applications with Token Authentication
Mobile Authentication for iOS Applications
Building a document e-signing workflow with Azure Durable Functions
The Ultimate Guide to Mobile API Security
O365Con18 - Azure Active Directory - Sasha Kranjac & Mustafa Toroman
O365Con18 - Red Team vs Blue Team - Sasha Kranjac & Mustafa Toroman
Spring Security
Authentication: Cookies vs JWTs and why you’re doing it wrong
Azure Key Vault with a PaaS Architecture and ARM Template Deployment
ApacheCon 2014: Infinite Session Clustering with Apache Shiro & Cassandra
MongoDB World 2019: MongoDB Atlas Security 101 for Developers
What are JSON Web Tokens and Why Should I Care?
WSO2Con USA 2017: Building a Secure Enterprise
Zero Credential Development with Managed Identities
Super simple application security with Apache Shiro
Zero Credential Development with Managed Identities for Azure resources
Colabora.dk - Azure PTA vs ADFS vs Desktop SSO
Instant Security & Scalable User Management with Spring Boot
Ad

Viewers also liked (16)

PDF
Building Beautiful REST APIs in ASP.NET Core
PPTX
Storing User Files with Express, Stormpath, and Amazon S3
PPTX
Custom Data Search with Stormpath
PPTX
Beautiful REST+JSON APIs with Ion
PPTX
Building Secure User Interfaces With JWTs (JSON Web Tokens)
PDF
Getting Started With Angular
PDF
Build a REST API for your Mobile Apps using Node.js
PPTX
Token Authentication for Java Applications
PDF
Building Beautiful REST APIs with ASP.NET Core
PPTX
Build a Node.js Client for Your REST+JSON API
PPTX
So long scrum, hello kanban
PPTX
Elegant Rest Design Webinar
PPTX
Build A Killer Client For Your REST+JSON API
PPTX
REST API Design for JAX-RS And Jersey
PPT
ID Next 2013 Keynote Slides by Mike Schwartz
PPTX
RUCUG: 9. Sergey Khalyapin: Представляем XenDesktop 5
Building Beautiful REST APIs in ASP.NET Core
Storing User Files with Express, Stormpath, and Amazon S3
Custom Data Search with Stormpath
Beautiful REST+JSON APIs with Ion
Building Secure User Interfaces With JWTs (JSON Web Tokens)
Getting Started With Angular
Build a REST API for your Mobile Apps using Node.js
Token Authentication for Java Applications
Building Beautiful REST APIs with ASP.NET Core
Build a Node.js Client for Your REST+JSON API
So long scrum, hello kanban
Elegant Rest Design Webinar
Build A Killer Client For Your REST+JSON API
REST API Design for JAX-RS And Jersey
ID Next 2013 Keynote Slides by Mike Schwartz
RUCUG: 9. Sergey Khalyapin: Представляем XenDesktop 5
Ad

Similar to Mobile Authentication for iOS Applications - Stormpath 101 (20)

PPTX
Devteach 2017 OAuth and Open id connect demystified
PDF
1000 ways to die in mobile oauth
PPTX
OAuth - Don’t Throw the Baby Out with the Bathwater
PDF
QA Fest 2019. Диана Пинчук. Тестирование аутентификации и авторизации (AuthN ...
PDF
OAuth Base Camp
PPTX
OAuth 2.0 and Mobile Devices: Is that a token in your phone in your pocket or...
PPTX
Incorporating OAuth
PDF
Incorporating OAuth: How to integrate OAuth into your mobile app
PDF
Stateless Auth using OAUTH2 & JWT
PPT
Oauth2.0
PDF
ConFoo 2015 - Securing RESTful resources with OAuth2
PDF
OAuth In The Real World : 10 actual implementations you can't guess
PDF
Stateless token-based authentication for pure front-end applications
PPTX
CIS 2012 - Going Mobile with PingFederate and OAuth 2
PDF
Stateless authentication for microservices applications - JavaLand 2015
PDF
JDD2015: Security in the era of modern applications and services - Bolesław D...
PPTX
OAuth 2
PPTX
OAuth
PPT
Securing RESTful API
PDF
OAuth2
Devteach 2017 OAuth and Open id connect demystified
1000 ways to die in mobile oauth
OAuth - Don’t Throw the Baby Out with the Bathwater
QA Fest 2019. Диана Пинчук. Тестирование аутентификации и авторизации (AuthN ...
OAuth Base Camp
OAuth 2.0 and Mobile Devices: Is that a token in your phone in your pocket or...
Incorporating OAuth
Incorporating OAuth: How to integrate OAuth into your mobile app
Stateless Auth using OAUTH2 & JWT
Oauth2.0
ConFoo 2015 - Securing RESTful resources with OAuth2
OAuth In The Real World : 10 actual implementations you can't guess
Stateless token-based authentication for pure front-end applications
CIS 2012 - Going Mobile with PingFederate and OAuth 2
Stateless authentication for microservices applications - JavaLand 2015
JDD2015: Security in the era of modern applications and services - Bolesław D...
OAuth 2
OAuth
Securing RESTful API
OAuth2

Recently uploaded (20)

PPT
Introduction Database Management System for Course Database
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Digital Strategies for Manufacturing Companies
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Introduction to Artificial Intelligence
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
top salesforce developer skills in 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Nekopoi APK 2025 free lastest update
PDF
AI in Product Development-omnex systems
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Introduction Database Management System for Course Database
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Digital Strategies for Manufacturing Companies
Odoo POS Development Services by CandidRoot Solutions
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Operating system designcfffgfgggggggvggggggggg
Wondershare Filmora 15 Crack With Activation Key [2025
Softaken Excel to vCard Converter Software.pdf
Introduction to Artificial Intelligence
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Design an Analysis of Algorithms II-SECS-1021-03
top salesforce developer skills in 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Nekopoi APK 2025 free lastest update
AI in Product Development-omnex systems
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx

Mobile Authentication for iOS Applications - Stormpath 101