SlideShare une entreprise Scribd logo
1  sur  37
17-Feb-2021
Perth MuleSoft Meetup Group
Google Assistant Integration with MuleSoft
API Security using Azure AD
Welcome
2
Ryan Grondal
Lead Solution Engineer
MuleSoft
Gurunadha Reddy
IT Analyst
Tata
Michael Price
Senior Solutions Architect
MuleSoft
A SHOW OF HANDS:
Who is new to this Meetup?
3
● Introductions and Networking
● Google Assistant Integration with MuleSoft
● API Security using Azure AD
● Wrap-up and Networking
Agenda
Presented by Alex Fernandez
Google Assistant Integration with
MuleSoft
5
● Voice Assistant
o War on Voice Assistants
o What is Google Assistant?
o Building a custom assistant
● API Led and Voice Strategy
o Development and Implementation strategy
o Demo – Google Assistant in Action
o Demo – API Implementation
Overview
War on Voice Assistants
● In 2019, smart speaker ownership in the U.S. surpassed 76 million, according
to CIRP (Consumer Intelligence Research Partners), up from 66 million at the end
of 2018
Source:
https://connectedworld.com/war-of-the-voice-assistants/
Voice Assistant Leader
Smart Speaker
● Amazon Echo - 70%
● Google Home – 25%
● Apple Home Pods – 5%
Smartphone Assistant
● Google Assistant and Apple Siri – 36%
● Amazon Alexa - 25%
● Microsoft Cortana – 19%
● Other – 1%
Source:
https://connectedworld.com/war-of-the-voice-assistants/
What is Google Assistant?
● Google Assistant is an artificial intelligence–powered virtual assistant developed by Google that is
primarily available on mobile and smart home devices. - Wikipedia
How to build a custom assistant, Mr. Buzz?
Mr. Buzz is an assistant which can pay your bills
and pull your energy consumption. This enables
an energy company to serve customers via a Voice
enabled strategy.
Actions by Google
GUI and SDK to train and interprets voice intentions
Voice
Invocations
Buzz
Google
Assistant uses
NLU to ’parse’
context of
your
voice/text
Train Assistant
to identify
keywords or
phrases
Keywords into
parameters
Where does Mule fits in?
● Serve as an experience API (API Led)
● Expose assets from internal systems to feed
data
API Led +
Voice
Strategy
Mule experience API and
Google Assistant
Webhook
exp-google-actions.au-s1
Mule Experience API –
Request sent by Google
Actions
Buzz
Mule Experience API – Expected Response
Buzz
Mule Experience API Security
DEMO
● Google Assistant in Action
● API Implementation
References
● https://developers.google.com/assistant
Presented by Poulami Maity
API Security using Azure AD
23
o Client ID/Secret
o OAuth 2.0
o Policies used
■ Rate Limiting based – SLA Based
■ JWT Validation
■ IP Whitelist in some cases
■ IP Blacklist (proposed)
Authentication on APIs
Earlier Approach
24
Revised Guidelines on API Security
○ Applications should only accept tokens related to their own identity.
○ APIs or applications should have their own identity. To achieve the APIs should be registered in the Authorization
server or Azure AD.
○ Tokens intended for one service should not be passed on to another service - unless this is used in the On-
Behalf-Of flow in order to vend a token that is still constrained to the identity of the first token.
○ Validation of the token is done on the resource server , in this case Mulesoft. The following claims are validated:
○ Token expiry
○ Scopes/Roles
○ Audience
○ Additional claims may be checked in a token e.g. UPN in additional to the mandatory claims.
25
OAuth 2.0 Flows
● The On-Behalf-Of grant is typically used in scenarios involving machine-to-machine communication,
but user context needs to be maintained within the call to the next system.
● The client-credentials grant is typically used in scenarios involving two trusted parties; usually in
machine-to-machine, or service-to-service communication without the involvement of a user. r that is
tied to the identity of the initial token.
26
Ownership in Azure AD for APIs
● The owner is ultimately responsible and accountable for granting access to user or machine identities.
The owner must consider;
○ Owners are responsible for assigning permissions to application and user identities.
○ Owners are responsible for revoking permissions to application and user identities.
○ Owners are responsible for defining rules for accessing their resource
○ Define the terms of service for the relation between the client and the API
○ Understand the requirements of access to the data.
○ Consult with the data owner or custodian of the data to understand the sensitivity of the data , they are
granting a client access to .
27
28
DEMO
29
Resource Level Authorization
● Authorization strategy depends upon the resource being accessed in an API.
● Defining permissions one every resource on the API.
● Used scopes for resource level authorization.
● Consumers requesting for a particular resource has to get the scope pre-approved in Azure AD by the
owner of the API and get it approved by Platform team.
● JWT Validation Policy checks for the scopes in the token is the intended scope for the endpoint or
resource.
30
31
DEMO
Role-Based-Authorization-Control
● Role-Based-Authorization-Control is highly recommended.
● Application Registrations must be having at least one corresponding Azure AD Group to represent
users (also referred to as a ‘boundary group’). All users and services that access the application should
be members of this group.
● The Azure AD groups should be bound or mapped to an appropriate ‘AppRole’ as part of the
Application Registration.
● Permissions should be granted to users based on membership of various ‘AppRoles’.
● Applications/APIs must check that tokens include the appropriate ‘AppRoles’ claims before
authorizing access.
32
33
DEMO
34
Thank you
35
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/
○ Check out the Ideas Portal: https://help.mulesoft.com/s/ideas
○ Come join the Developer Community: https://developer.mulesoft.com/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
What’s next?
Introduce yourself to your neighbour
Networking time
Thank you

Contenu connexe

Tendances

Tendances (20)

Apigee Edge: Intro to Microgateway
Apigee Edge: Intro to MicrogatewayApigee Edge: Intro to Microgateway
Apigee Edge: Intro to Microgateway
 
Pivotal + Apigee Workshop (June 4th, 2019)
Pivotal + Apigee Workshop (June 4th, 2019)Pivotal + Apigee Workshop (June 4th, 2019)
Pivotal + Apigee Workshop (June 4th, 2019)
 
Api Gateway
Api GatewayApi Gateway
Api Gateway
 
API Security Best Practices and Guidelines
API Security Best Practices and GuidelinesAPI Security Best Practices and Guidelines
API Security Best Practices and Guidelines
 
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
 
Security architecture best practices for saas applications
Security architecture best practices for saas applicationsSecurity architecture best practices for saas applications
Security architecture best practices for saas applications
 
[WSO2 Summit Chicago 2018] Welcome Address: Integration Agility
[WSO2 Summit Chicago 2018] Welcome Address: Integration Agility[WSO2 Summit Chicago 2018] Welcome Address: Integration Agility
[WSO2 Summit Chicago 2018] Welcome Address: Integration Agility
 
INTERFACE, by apidays - The future of API Management in a hybrid, multi-clou...
INTERFACE, by apidays  - The future of API Management in a hybrid, multi-clou...INTERFACE, by apidays  - The future of API Management in a hybrid, multi-clou...
INTERFACE, by apidays - The future of API Management in a hybrid, multi-clou...
 
apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...
apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...
apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...
 
Apigee Insights: Data & Context-Driven Actions
Apigee Insights: Data & Context-Driven ActionsApigee Insights: Data & Context-Driven Actions
Apigee Insights: Data & Context-Driven Actions
 
Apigee Products Overview
Apigee Products OverviewApigee Products Overview
Apigee Products Overview
 
What is APIGEE? What are the benefits of APIGEE?
What is APIGEE? What are the benefits of APIGEE?What is APIGEE? What are the benefits of APIGEE?
What is APIGEE? What are the benefits of APIGEE?
 
Architecting SaaS
Architecting SaaSArchitecting SaaS
Architecting SaaS
 
apidays LIVE Paris 2021 - Addressing OWASP API Security Top 10 by Isabelle Ma...
apidays LIVE Paris 2021 - Addressing OWASP API Security Top 10 by Isabelle Ma...apidays LIVE Paris 2021 - Addressing OWASP API Security Top 10 by Isabelle Ma...
apidays LIVE Paris 2021 - Addressing OWASP API Security Top 10 by Isabelle Ma...
 
API Security Webinar : Security Guidelines for Providing and Consuming APIs
API Security Webinar : Security Guidelines for Providing and Consuming APIsAPI Security Webinar : Security Guidelines for Providing and Consuming APIs
API Security Webinar : Security Guidelines for Providing and Consuming APIs
 
Apigee Edge Product Demo
Apigee Edge Product DemoApigee Edge Product Demo
Apigee Edge Product Demo
 
INTERFACE, by apidays - Airline industry API standardization by Yan Sun, IATA
INTERFACE, by apidays  - Airline industry API standardization by Yan Sun, IATAINTERFACE, by apidays  - Airline industry API standardization by Yan Sun, IATA
INTERFACE, by apidays - Airline industry API standardization by Yan Sun, IATA
 
The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...
The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...
The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...
 
Gravitee API Management - Ahmet AYDIN
 Gravitee API Management  -  Ahmet AYDIN Gravitee API Management  -  Ahmet AYDIN
Gravitee API Management - Ahmet AYDIN
 
apidays LIVE India - Asynchronous and Broadcasting APIs using Kafka by Rohit ...
apidays LIVE India - Asynchronous and Broadcasting APIs using Kafka by Rohit ...apidays LIVE India - Asynchronous and Broadcasting APIs using Kafka by Rohit ...
apidays LIVE India - Asynchronous and Broadcasting APIs using Kafka by Rohit ...
 

Similaire à Perth Meetup February 2021

Similaire à Perth Meetup February 2021 (20)

WSO2- OSC Korea - Accelerating Digital Businesses with APIs
WSO2- OSC Korea - Accelerating Digital Businesses with APIsWSO2- OSC Korea - Accelerating Digital Businesses with APIs
WSO2- OSC Korea - Accelerating Digital Businesses with APIs
 
Anypoint new features_coimbatore_mule_meetup
Anypoint new features_coimbatore_mule_meetupAnypoint new features_coimbatore_mule_meetup
Anypoint new features_coimbatore_mule_meetup
 
API, Integration, and SOA Convergence
API, Integration, and SOA ConvergenceAPI, Integration, and SOA Convergence
API, Integration, and SOA Convergence
 
#2 connected apps_calicut_31_july
#2 connected apps_calicut_31_july#2 connected apps_calicut_31_july
#2 connected apps_calicut_31_july
 
Setting the Foundation for Digital Transformation Through API Management and ...
Setting the Foundation for Digital Transformation Through API Management and ...Setting the Foundation for Digital Transformation Through API Management and ...
Setting the Foundation for Digital Transformation Through API Management and ...
 
WSO2Con EU 2015: API Management Strategies and Best Practices
WSO2Con EU 2015: API Management Strategies and Best PracticesWSO2Con EU 2015: API Management Strategies and Best Practices
WSO2Con EU 2015: API Management Strategies and Best Practices
 
Executing on API Developer Experience
Executing on API Developer Experience Executing on API Developer Experience
Executing on API Developer Experience
 
Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...
Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...
Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...
 
Managing the Complexity of Microservices Deployments
Managing the Complexity of Microservices DeploymentsManaging the Complexity of Microservices Deployments
Managing the Complexity of Microservices Deployments
 
apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...
apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...
apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...
 
OAuth Base Camp
OAuth Base CampOAuth Base Camp
OAuth Base Camp
 
API Security with OAuth2.0.
API Security with OAuth2.0.API Security with OAuth2.0.
API Security with OAuth2.0.
 
Implementing Microservices Security Patterns & Protocols with Spring
Implementing Microservices Security Patterns & Protocols with SpringImplementing Microservices Security Patterns & Protocols with Spring
Implementing Microservices Security Patterns & Protocols with Spring
 
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker IdentityFederation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
 
GCCP-Session 2
GCCP-Session 2GCCP-Session 2
GCCP-Session 2
 
Setting the Foundation for Digital Transformation Through API Management and ...
Setting the Foundation for Digital Transformation Through API Management and ...Setting the Foundation for Digital Transformation Through API Management and ...
Setting the Foundation for Digital Transformation Through API Management and ...
 
Hyderabad MuleSoft Meetup
Hyderabad MuleSoft MeetupHyderabad MuleSoft Meetup
Hyderabad MuleSoft Meetup
 
WSO2 User Group Bangalore Meetup
WSO2 User Group Bangalore MeetupWSO2 User Group Bangalore Meetup
WSO2 User Group Bangalore Meetup
 
MuleSoft Certified Platform Architect Exam Dumps 2023.pdf
MuleSoft Certified Platform Architect Exam Dumps 2023.pdfMuleSoft Certified Platform Architect Exam Dumps 2023.pdf
MuleSoft Certified Platform Architect Exam Dumps 2023.pdf
 
Princeton-NJ-Meetup-Externalizing-Mule-logs-Azure-blog-storage.pptx
Princeton-NJ-Meetup-Externalizing-Mule-logs-Azure-blog-storage.pptxPrinceton-NJ-Meetup-Externalizing-Mule-logs-Azure-blog-storage.pptx
Princeton-NJ-Meetup-Externalizing-Mule-logs-Azure-blog-storage.pptx
 

Plus de Michael Price (6)

Slides from Perth MuleSoft Meetup March 2024
Slides from Perth MuleSoft Meetup March 2024Slides from Perth MuleSoft Meetup March 2024
Slides from Perth MuleSoft Meetup March 2024
 
Perth MeetUp November 2023
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
 
Perth MeetUp September 2023
Perth MeetUp September 2023 Perth MeetUp September 2023
Perth MeetUp September 2023
 
Perth MeetUp June 2023
Perth MeetUp June 2023Perth MeetUp June 2023
Perth MeetUp June 2023
 
Perth Meetup May 2022
Perth Meetup May 2022Perth Meetup May 2022
Perth Meetup May 2022
 
Perth Meetup December 2021
Perth Meetup December 2021Perth Meetup December 2021
Perth Meetup December 2021
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Perth Meetup February 2021

  • 1. 17-Feb-2021 Perth MuleSoft Meetup Group Google Assistant Integration with MuleSoft API Security using Azure AD
  • 2. Welcome 2 Ryan Grondal Lead Solution Engineer MuleSoft Gurunadha Reddy IT Analyst Tata Michael Price Senior Solutions Architect MuleSoft A SHOW OF HANDS: Who is new to this Meetup?
  • 3. 3 ● Introductions and Networking ● Google Assistant Integration with MuleSoft ● API Security using Azure AD ● Wrap-up and Networking Agenda
  • 4. Presented by Alex Fernandez Google Assistant Integration with MuleSoft
  • 5. 5 ● Voice Assistant o War on Voice Assistants o What is Google Assistant? o Building a custom assistant ● API Led and Voice Strategy o Development and Implementation strategy o Demo – Google Assistant in Action o Demo – API Implementation Overview
  • 6. War on Voice Assistants ● In 2019, smart speaker ownership in the U.S. surpassed 76 million, according to CIRP (Consumer Intelligence Research Partners), up from 66 million at the end of 2018 Source: https://connectedworld.com/war-of-the-voice-assistants/
  • 7. Voice Assistant Leader Smart Speaker ● Amazon Echo - 70% ● Google Home – 25% ● Apple Home Pods – 5% Smartphone Assistant ● Google Assistant and Apple Siri – 36% ● Amazon Alexa - 25% ● Microsoft Cortana – 19% ● Other – 1% Source: https://connectedworld.com/war-of-the-voice-assistants/
  • 8. What is Google Assistant? ● Google Assistant is an artificial intelligence–powered virtual assistant developed by Google that is primarily available on mobile and smart home devices. - Wikipedia
  • 9. How to build a custom assistant, Mr. Buzz? Mr. Buzz is an assistant which can pay your bills and pull your energy consumption. This enables an energy company to serve customers via a Voice enabled strategy. Actions by Google GUI and SDK to train and interprets voice intentions
  • 11. Google Assistant uses NLU to ’parse’ context of your voice/text
  • 14. Where does Mule fits in? ● Serve as an experience API (API Led) ● Expose assets from internal systems to feed data
  • 16. Mule experience API and Google Assistant Webhook exp-google-actions.au-s1
  • 17. Mule Experience API – Request sent by Google Actions Buzz
  • 18. Mule Experience API – Expected Response Buzz
  • 20. DEMO ● Google Assistant in Action ● API Implementation
  • 22. Presented by Poulami Maity API Security using Azure AD
  • 23. 23 o Client ID/Secret o OAuth 2.0 o Policies used ■ Rate Limiting based – SLA Based ■ JWT Validation ■ IP Whitelist in some cases ■ IP Blacklist (proposed) Authentication on APIs
  • 25. Revised Guidelines on API Security ○ Applications should only accept tokens related to their own identity. ○ APIs or applications should have their own identity. To achieve the APIs should be registered in the Authorization server or Azure AD. ○ Tokens intended for one service should not be passed on to another service - unless this is used in the On- Behalf-Of flow in order to vend a token that is still constrained to the identity of the first token. ○ Validation of the token is done on the resource server , in this case Mulesoft. The following claims are validated: ○ Token expiry ○ Scopes/Roles ○ Audience ○ Additional claims may be checked in a token e.g. UPN in additional to the mandatory claims. 25
  • 26. OAuth 2.0 Flows ● The On-Behalf-Of grant is typically used in scenarios involving machine-to-machine communication, but user context needs to be maintained within the call to the next system. ● The client-credentials grant is typically used in scenarios involving two trusted parties; usually in machine-to-machine, or service-to-service communication without the involvement of a user. r that is tied to the identity of the initial token. 26
  • 27. Ownership in Azure AD for APIs ● The owner is ultimately responsible and accountable for granting access to user or machine identities. The owner must consider; ○ Owners are responsible for assigning permissions to application and user identities. ○ Owners are responsible for revoking permissions to application and user identities. ○ Owners are responsible for defining rules for accessing their resource ○ Define the terms of service for the relation between the client and the API ○ Understand the requirements of access to the data. ○ Consult with the data owner or custodian of the data to understand the sensitivity of the data , they are granting a client access to . 27
  • 28. 28
  • 30. Resource Level Authorization ● Authorization strategy depends upon the resource being accessed in an API. ● Defining permissions one every resource on the API. ● Used scopes for resource level authorization. ● Consumers requesting for a particular resource has to get the scope pre-approved in Azure AD by the owner of the API and get it approved by Platform team. ● JWT Validation Policy checks for the scopes in the token is the intended scope for the endpoint or resource. 30
  • 32. Role-Based-Authorization-Control ● Role-Based-Authorization-Control is highly recommended. ● Application Registrations must be having at least one corresponding Azure AD Group to represent users (also referred to as a ‘boundary group’). All users and services that access the application should be members of this group. ● The Azure AD groups should be bound or mapped to an appropriate ‘AppRole’ as part of the Application Registration. ● Permissions should be granted to users based on membership of various ‘AppRoles’. ● Applications/APIs must check that tokens include the appropriate ‘AppRoles’ claims before authorizing access. 32
  • 35. 35 ● Share: ○ Tweet using the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/ ○ Check out the Ideas Portal: https://help.mulesoft.com/s/ideas ○ Come join the Developer Community: https://developer.mulesoft.com/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program What’s next?
  • 36. Introduce yourself to your neighbour Networking time