Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewvanbeek-okta/080b0ee4ffc01bdd6d1cc592a87f7b6d to your computer and use it in GitHub Desktop.
Save andrewvanbeek-okta/080b0ee4ffc01bdd6d1cc592a87f7b6d to your computer and use it in GitHub Desktop.
Secure Google Cloud Endpoints with Okta example
swagger: "2.0"
info:
title: "Airport Codes"
description: "Get the name of an airport from its three-letter IATA code."
version: "1.0.0"
host: "{project name}.appspot.com"
schemes:
- "https"
paths:
"/airportName":
get:
description: "Get the airport name for a given IATA code."
operationId: "airportName"
parameters:
-
name: iataCode
in: query
required: true
type: string
responses:
200:
description: "Success."
schema:
type: string
400:
description: "The IATA code is invalid or missing."
security:
- your_custom_auth_id: []
securityDefinitions:
your_custom_auth_id:
authorizationUrl: "https://{your company name}.okta.com/oauth2/{your server id}7/v1/authorize"
flow: "implicit"
type: "oauth2"
x-google-issuer: "https:/{your company name}.okta.com/oauth2/{your server id}"
x-google-jwks_uri: "https://{your company name}.okta.com/oauth2/{your server id}7/v1/keys"
x-google-audiences: "your auth server audience"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment