Ich versuche, Google Endpunkte Authentifizierung mit der Auth0-Integration zu verwenden.Google Endpunkte mit Auth0-Integration
Ich bin nicht sicher, wie kann ich das tun, ich benutze die Endpunkte doc, aber das ist nicht wirklich abgeschlossen. Wenn ich es bereitstellen, funktioniert es nicht.
Vielen Dank für jede Hilfe
das ist meine Prahlerei-Datei:
swagger: "2.0"
info:
description: "A simple Google Cloud Endpoints API example."
title: "Endpoints Example"
version: "1.0.0"
host: "xxx.appspot.com"
basePath: "/"
consumes:
- "application/json"
produces:
- "application/json"
schemes:
- "https"
paths:
"/echo":
get:
description: "Echo back a given message."
operationId: "echo"
produces:
- "application/json"
responses:
200:
description: "Echo"
schema:
$ref: "#/definitions/echoMessage"
security:
- auth0_jwk: []
definitions:
echoMessage:
properties:
message:
type: "string"
authInfoResponse:
properties:
id:
type: "string"
email:
type: "string"
# This section requires all requests to any path to require an API key.
security:
- auth0_jwk: []
securityDefinitions:
# This section configures basic authentication with an API key.
api_key:
type: "apiKey"
name: "key"
in: "query"
# This section configures authentication using Google API Service Accounts
# to sign a json web token. This is mostly used for server-to-server
# communication.
auth0_jwk:
# Update YOUR-ACCOUNT-NAME with your Auth0 account name.
authorizationUrl: "https://xxx.auth0.com/authorize"
flow: "implicit"
type: "oauth2"
x-issuer: "https://xxx.auth0.com/"
# Update this with your service account's email address.
x-jwks_uri: "https://xxx.auth0.com/.well-known/jwks.json"
Was ist der genaue Fehler, den Sie bekommen? Welches Dokument/Tutorial folgen Sie? –
Ich bekomme keinen Fehler die einzige Nachricht ist von der Kommandozeile und sagt "/ echo Pfad keine apikey erfordern". Wenn es aktiviert ist, kann ich den Echopfad ohne einen Fehler aufrufen. Ich folge den Google Docs für Endpunkte. – Aron
Was erwartest du zu passieren? Was funktioniert nicht? Welches Tutorial verwendest du? –