LogoLogo
Changelog
17.15
17.15
  • Welcome
    • Quickstart
    • Building Your First App
      • Connecting to Salesforce (Advanced)
      • Building Your First App (Appendix)
    • Terminology
    • Airkit Flight School
  • Concepts
    • Journeys
      • Linking to Journeys
    • Actors
      • Conversations with Actors
  • Console
    • Console
  • Studio
    • Studio
    • Builder Bar
      • Journey Builder
      • Web Builder
      • Chat Bot Builder
      • Voice Bot Builder
      • Connection Builder
      • Media Library
      • Data Builder
      • Theme Builder
      • Calendar Builder
      • Configuration Builder
      • Portal Builder
    • App Preview
    • Action Builder
    • Web Flows
    • Data Flows
    • Events
      • Starting Events
      • Journey Events
      • Control Events
      • Activity Events
      • App API and Subscription Events
  • Working with Data
    • Overview
    • Variable Scopes
    • AirData
      • AirData App Objects
      • Identity App Objects
      • AirData Querying Capabilities
      • Schedule Objects
    • Datastores
    • Standard Journey Data
    • Integrations and APIs
      • Setting up Integrations
      • Adding and Modifying Resources
      • Querying and Manipulating Data
      • Application APIs
      • Inbound Requests
  • Building Apps
    • Forms
      • Form Basics
      • Displaying Sections Dynamically
      • Repeating Elements
      • Form Personalization
      • Validation of User Data
      • Capture Secure User Data
      • Progress Bars
      • Radio Button Lists
      • Dropdown Menus
      • Electronic Signatures
    • Voice and Chat
      • Voice Bot Basics
      • Chat Bot Basics
      • Texting Journey Links
      • Information Captured
    • KitCloud
      • Web Flow Templates
      • Data Flow Templates
    • Integration Guides
      • Creating SFTP Credentials
      • Swagger Schema Validation
      • Create A Salesforce Lead
      • Create a Zendesk Ticket
    • Calendars
      • Customizing Schedule Availability
      • Using Availability Schedules
      • Rescheduling Deflected Calls
      • Integrating to External Calendars
    • Maps and Addresses
      • Maps
      • Addresses
      • User's Current Location
    • Payments
      • Creating a Stripe Integration
    • Email
      • Sending Emails
      • Configuring Domains to Send Emails
    • Timers and Reminders
      • Setting Timers
      • Setting up Periodic Tasks
    • PDFs
      • Creating a PDF
      • Working with Existing PDFs
    • Assets and Media
      • Using the File Upload Web Control
      • Working with Files and Media
      • Assets and Data Operations
      • Sending Assets to Remote Servers
    • Embeds
      • Embedding Apps on Websites
      • AirClient Configurable Properties
    • Publishing
      • Publishing Your Application
      • Editing an Application
      • Importing/Exporting Apps
      • Profiles and Deployment Settings
      • Tying Variables to Deployments
      • Profiles and Deployment Settings
    • Portals
      • Portal Capabilities
      • Portal Data Grids
      • Running Data Flows in Portals
    • Analytics
      • Journey Analytics
      • Reporting
      • View Journey Data
      • Setting up Analytics with GTM
      • Setting up Analytics with Heap
      • Analytics Schema
    • Advanced
      • Custom Controls
      • Creating Custom Functions
    • Authentication
      • SAML Authentication
      • OAuth 2.0 - Google
      • OAuth 2.0 - Okta
      • OAuth 2.0 - Auth0
  • Airscript
    • Airscript Quickstart
    • Testing Airscript Expressions
    • Airscript Examples
    • Working with Text
    • Working with Numbers and Currency
    • Working with Dates and Times
      • Date and Time Formatting Options
      • Time Unit Values
      • Supported Time Zones
    • Working with Email and Phone
    • Working with Missing Values
    • Working with URLs and Base64
    • Filtering Data using Query Expression
    • Querying Lists and Objects
  • Customizations
    • Connecting Twilio Numbers
    • Connecting Your Domain
    • Styling
      • Themes and Control Variants
      • Importing and Exporting Themes
      • Working with Custom Fonts
      • Creating an App Header
  • Administration
    • Configuring SSO Access
    • Managing User Roles
    • Adding Users to Airkit
    • Airkit Organizations
    • Environments
  • Error Management
    • Logging Custom Event Errors
    • Integrating Error Notifications to Slack
  • Security and Compliance
    • IP Ranges
    • Encrypting Data
    • App Security FAQ
    • TCPA
    • How To enforce TCPA
  • Airscript Expressions
    • Text Functions
      • CAPITALIZE
      • CONCAT
      • ISSTRING
      • LOWERCASE
      • PADSTRING
      • REPLACE
      • REPT
      • SPLIT
      • STRING_COMPARE
      • STRING_FIND
      • STRIP
      • SUBSTITUTE
      • SUBSTRING
      • TITLECASE
      • TRIM
      • UPPERCASE
    • DateTime Functions
      • ADD_TO_DATETIME
      • DATE
      • DATETIME
      • DATETIME_DELTA
      • DATETIME_FROM_FORMAT
      • DATETIME_FROM_TIMESTAMP
      • DATE_DELTA
      • DATE_FROM_DATETIME
      • DATE_FROM_FORMAT
      • DAY
      • DAYS
      • FORMAT_DATE
      • FORMAT_DATETIME
      • FORMAT_TIME
      • HOUR
      • ISO_WEEK
      • MINUTE
      • MONTH
      • NOW
      • SECOND
      • SUBTRACT_FROM_DATETIME
      • TIME
      • TIMESTAMP_FROM_DATETIME
      • TIME_DELTA
      • TIME_FROM_DATETIME
      • TIME_FROM_FORMAT
      • TODAY
      • UPDATE_DATE
      • UPDATE_DATETIME
      • UPDATE_DAY
      • UPDATE_HOUR
      • UPDATE_MILLISECOND
      • UPDATE_MINUTE
      • UPDATE_MONTH
      • UPDATE_SECOND
      • UPDATE_TIME
      • UPDATE_TIMEZONE
      • UPDATE_YEAR
      • WEEK
      • WEEKDAY
      • YEAR
    • List Functions
      • CONTAINS
      • FIRST
      • FLAT
      • JOIN
      • LAST
      • LENGTH
      • SHUFFLE
    • Object Functions
      • KEYS
      • VALUES
      • MERGE_OBJECTS
    • Math Functions
      • ABS
      • ACOS
      • ACOSH
      • ACOT
      • ACOTH
      • ASIN
      • ASINH
      • ATAN
      • ATAN2
      • ATANH
      • CEILING
      • COMBIN
      • COMBINA
      • COS
      • COSH
      • COT
      • COTH
      • CSC
      • CSCH
      • DEGREES
      • EVEN
      • EXP
      • FACT
      • FACTDOUBLE
      • FLOOR
      • GCD
      • ISEVEN
      • ISNUMBER
      • ISODD
      • LATLNGDISTANCE
      • LCM
      • LN
      • LOG
      • MAX
      • MIN
      • MROUND
      • MULTINOMIAL
      • ODD
      • PI
      • POWER
      • PRODUCT
      • RADIANS
      • RANDOM
      • RANGE
      • ROUND
      • ROUNDDOWN
      • ROUNDUP
      • SEC
      • SECH
      • SIGN
      • SIN
      • SINH
      • SQRT
      • SQRTPI
      • SUM
      • SUMSQ
      • TAN
      • TANH
      • TRUNC
    • Conditional Functions
      • IF
      • ISEMPTY
      • ISNOTEMPTY
      • NOT
    • Currency Functions
      • CURRENCY
      • FORMAT_CURRENCY
      • PARSE_CURRENCY
    • Phone Functions
      • FORMAT_PHONE
      • ISPHONE
      • PARSE_PHONE
    • Email Functions
      • ISEMAIL
    • Number Formatting Functions
      • ARABIC
      • FORMAT_NUMBER
      • PARSE_NUMBER
      • ROMAN
    • Data Type Functions
      • FROM_JSON
      • TO_JSON
      • TYPEOF
    • Asset Functions
      • ASSET_SIZE
      • ASSET_STATE
      • ASSET_THUMBNAIL_URL
      • ASSET_TO_URI
      • ASSET_TYPE
      • URI_TO_ASSET
    • Encoding Functions
      • BASE
      • BASE64_DECODE
      • BASE64_ENCODE
      • HMAC_MD5
      • HMAC_SHA1
      • HMAC_SHA256
      • MD5
      • SHA1
      • SHA256
      • URL_DECODE
      • URL_ENCODE
      • VALUE_OF
    • Arithmetic Operators
      • Addition (+)
      • Subtraction (-)
      • Multiplication (*)
      • Division (/)
      • Remainder (%)
    • Comparison Operators
      • Equality (=)
      • Inequality (<>, !=)
      • Ordering (<, <=, > , >=)
    • User Defined Functions
  • web-controls
    • Web Controls Overview
      • Common Style Properties of Web Controls
    • Button
    • Button Cell
    • Checkbox
    • Checkbox Cell
    • Checkbox List
    • Container
    • Credit Card
    • Currency Input
    • Date Picker
    • Dropdown List
    • Email Input
    • Embedded External Content (Container)
    • File Upload
    • Form Container
    • Hyperlink
    • Image
    • Label
    • List
    • Map
    • Media Upload
    • Number Input
    • Payment Request Button
    • Phone Input
    • Place Search Input
    • Progress Bar
    • Radio Button
    • Radio Button List
    • Radio Cell
    • Scheduler
    • Secure String Input
    • Signature
    • Simple Cell
    • Text Area
    • Text Input
    • Web Flow
    • Web Page
  • Voice and Chat Controls
    • Dialogue Controls Overview
    • Decision Menu
    • Forward Call
    • Secure Touchtone Capture
    • Text Response Capture
    • Touchtone Capture
  • Data Operations
    • Data Operation Overview
    • AirData Request
    • Calendar Search
    • Create File
    • Delete Assets
    • Download Encoded Asset
    • Fetch Asset Details
    • Fill PDF Form
    • Google
    • HTML to PDF
    • HTTP Request
      • Using an API With Paging
    • Journey Mapping
    • Merge PDF
    • Run Data Flow
    • Run Journey Event
    • Salesforce
    • Secure Value Retrieval
    • Send Email
    • SFTP
    • Swagger Schema Validation
    • Transform
    • Wait
    • XML to JSON
    • Zendesk
    • ZIP File
  • Actions
    • Analytics Identify
    • Analytics Send Event
    • Cancel Timer
    • Close Modal
    • Condition
    • Create Timer
    • End Journey
    • Extend Journey Expiration Time
    • Initialize Actor
    • Log Custom Event
    • Navigate To Web Flow
    • Navigate to Web Page
    • Open Modal
    • Reporting Metric > Count
    • Reporting Metric > Field
    • Reporting Metric > Start Timer
    • Reporting Metric > Statistic
    • Reporting Metric > Stop Timer
    • Run Data Flow
    • Run Data Flow Repeatedly
    • Run Event
    • Set Authentication
    • Set Identifier
    • Set Variable
    • Start Chat Bot
    • Start Voice Bot
  • Variable Data Types
    • Data Types Overview
    • Any (JSON)
    • Asset
      • Detailed Asset
    • Boolean
    • Currency
    • Date
    • DateTime
    • Email
    • List
    • Location
    • Null
    • Number
    • Phone
    • Place
    • Text
    • Time
    • Custom Data Types
  • Integrations
    • Genesys Widget Integration
    • Zendesk Integration
    • Salesforce Integration
    • Plaid Integration
    • Twilio Integration
    • Stripe Integration
    • Shopify Integration
    • Airtable Integration
    • Google Integration
    • SFTP Integration
    • Custom Integrations
  • Kitcloud Templates
    • Address Capture and Parsing Web Flow Template
    • AirData Delete Record Data Flow Template
    • AirData Find Records Data Flow Template
    • AirData Insert Record Data Flow Template
    • Airtable Create Data Flow Template
    • Airtable Delete Data Flow Template
    • Airtable Query Data Flow Template
    • Airtable Update Data Flow Template
    • App Store Icon Buttons Web Flow Template
    • Attach Image to Ticket (Zendesk) Data Flow Template
    • Authenticate with API Web Flow Template
    • Basic HTTP Request Data Flow Template
    • Basic Transform Data Flow Template
    • Capture Customer Info Web Flow
    • Close a Ticket (Zendesk) Data Flow Template
    • Collect Customer Satisfaction Score (CSAT) Web Flow Template
    • Collect Net Promoter Score Web Flow Template
    • Collect One-Time Payment (Multiple Methods) Web Flow Template
    • Collect One-Time Payment (Stripe) Web Flow Template
    • Communication Channel Opt-in Web Flow Template
    • Complete a Task (Salesforce) Data Flow Template
    • Contact Us Web Flow Template
    • Create a Task (Salesforce) Data Flow Template
    • Create Ticket (Zendesk) Data Flow Template
    • Custom Image Radio Button List Web Flow Template
    • Email Mailing List Sign-Up Web Flow Template
    • Email Verification with OTP Web Flow Template
    • Encrypt Content with PGP Data Flow Template
    • Find a Contact by ID (Salesforce) Data Flow Template
    • Find a Task by ID (Salesforce) Data Flow Template
    • Find a User by ID (Salesforce) Data Flow Template
    • Find All Tickets (Zendesk) Data Flow Template
    • Generate One-Time-Password Code Data Flow Template
    • HTTP Request with Form Data - Data Flow Template
    • Location Selection with Map
    • Log a Call (Salesforce) Data Flow Template
    • Lookup Time Zone by Zip Code Data Flow Template
    • Order Summary Web Flow Template
    • Product Picker Web Flow Template
    • Run Sub Data Flow - Data Flow Template
    • Send Web Flow Link Chat Bot Template
    • Social Media Icon Buttons Web Flow
    • Speech Bubble Web Flow Template
    • Terms and Conditions Acceptance with Signature Capture Web Flow Template
    • Transform with Query Data Flow Template
    • Upload Photos Web Flow Template
    • USPS Address Verify Data Flow Template
    • USPS Lookup City and State by Zip Code Data Flow Template
    • Verify Email Address with OTP Web Flow Template
    • Vertical Progress Bar Web Flow Template
    • Yes/No Question List (Airscript Dynamic List)
    • Yes/No Question List (Static)
  • Product Versions
    • CXR Overview
    • Release Cadence and LTS
    • CXR Upgrades and Migrations
Powered by GitBook
On this page
  • Configuring a Google API project
  • Configuring OAuth in the App
  • Authentication Success

Was this helpful?

  1. Building Apps
  2. Authentication

OAuth 2.0 - Google

PreviousSAML AuthenticationNextOAuth 2.0 - Okta

Last updated 1 year ago

Was this helpful?

OAuth 2.0 with OpenID Connect with Google provides the ability to use Google as the OAuth vendor and have users login before accessing a web flow in an application.

Configuring a Google API project

Follow to get a Google API Client ID and set the following scopes:

  • Userinfo.email

  • Userinfo.profile

  • openid

Then in Google’s Cloud Platform, go to Credentials and click on the name of your OAuth 2.0 Client ID:

Then, go back to Credentials and copy the OAuth 2.0 Client ID:

Configuring OAuth in the App

Access your app, go to Configuration Builder > Global and follow these steps:

  1. From the App Authentication Type dropdown, select Secure App

  2. In Authentication Method, select OAuth 2.0 w/ OpenID Connect

  3. As OAuth Vendor, choose Google

  4. Finally, paste your Google OAuth 2.0 Client ID and save the app

Authentication Success

After setting up you OAuth authentication, go to Connection Builder and click on the On Authentication Success Event.

The “On Authentication Success” event will run when the user is authenticated. On this event, there is the event namespace where you can access data about the user.

event.attributes

Includes data such as:

  • Email

  • Picture

  • Name

  • Locale

event.nameId

nameId refers to the user’s email address they authenticated with.

To access this data and store it in a session variable, In the Inspector section, click on the ‘+’ icon under Actions and add two Set Variable actions from the Data options to get the attributes of the users that signed into the app:

Publish the app and navigate the launch trigger to check that the requested user attributes are retrieved.

In Authorized Redirect URIs, add one of the following Redirect URIs, according to where your is based: [block:callout] { "type": "info", "title": "Redirect URIs", "body": "US Realm\n\nhttps://us.api.prod.airkit.com/internal/session-gateway/oauth/callbackEU Realm\nhttps://eu.api.prod.airkit.com/internal/session-gateway/oauth/callback\nAP Realm \nhttps://ap.api.prod.airkit.com/internal/session-gateway/oauth/callback" } [/block]

Org
Google’s instructions