1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello Stefan,
Not sure if you can do it directly in the API Gateway,
but you could integrate a lambda function that validates the token and returns the token to the api gateway. If the token is present, forward the event to eventbridge.
Something like that ( + the eventbridge forwarding logic) :
def lambda_handler(event, context):
headers = event.get('headers', {})
validation_token = headers.get('Validation-Token')
if validation_token:
# Validation token present, return it as a response
return {
'statusCode': 200,
'headers': {
'Content-Type': 'application/json'
},
'body': json.dumps({'validationToken': validation_token})
}
Sincerely
Heiko
répondu il y a 5 mois
Contenus pertinents
- demandé il y a 3 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
Thank you Heiko. That is what i thought of. If it is a validation POST handle it by a Lambda otherwise transform and forward to event bridge. But it seems that there is no way to configure something like this in API Gateway - or i just havent found it :-(