Professional Documents
Culture Documents
Text
Text
Text
-->Another notable difference is the processing of the host property in Open API
definitions:
> In Cloud Endpoints, it is mandatory and is set to the hostname part of the
URL.
For e.g. .appspot.com
> In API Gateway, it is not mandatory, the host property can be deleted or
left blank or it is set to the DNS Name of the deployed API.
WHAT IS OAuth?
[OAuth (Open Authorization) is an open standard that allows a user to grant access
to their details on a third-party application with Google sign-in feature, without
having to expose their credentials to the application.
For example, when a user signs up using Google, upon signing up, Google responds
with an access token that is stored with Google and your application. Whenever the
user tries to log in to the application, a request is made to Google along with the
access token to verify the authenticity and validity of the token, upon
verification, Google responds with the requested data. Google never sends the
user's details back to the application. It only sends the details that are
specified in the scopes.]
defaultHostname: ca-gateway-az9axqye.uc.gateway.dev
Lab Steps:
----------
1. Login to GCP
2. Creating a Client Application for Google Authentication --- Configure OAuth
Client ID
(console > APIs and Services > OAuth Consent Screen)
3. Configuring and Deploying the API Endpoints to the AppEngine --- Create a python
application to define endpoints and the underlying method for Cloud Endpoints that
will return the user's email id
# Step 3:
CONFIGURING AND DEPLOYING THE API ENDPOINTS TO THE AppEngine
- INTRODUCTION: An API Endpoint is simply one end of a communication channel. When
one application needs to communicate with another over the network, it has to hit
the endpoint URL to consume the API. Inside the endpoint, you have to define the
method that you need to call. Irrespective of the technology stack, both the
application and APIs can communicate.