1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: make security optional for /edge/validate endpoint (#5739)

We've had a couple of misunderstandings from people surprised that
Unleash allows posts against the `/edge/validate` endpoint without an
API key. It is intentional that this endpoint does not require an
Authorization header, so this PR updates our OpenAPI spec to clarify
that there is no security required for `/edge/validate`
This commit is contained in:
Christopher Kolstad 2024-01-02 10:09:49 +01:00 committed by GitHub
parent 3a7824a2e8
commit 1fd233abc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,7 @@ export default class EdgeController extends Controller {
middleware: [ middleware: [
this.openApiService.validPath({ this.openApiService.validPath({
tags: ['Edge'], tags: ['Edge'],
security: [{}],
summary: 'Check which tokens are valid', summary: 'Check which tokens are valid',
description: description:
'This operation accepts a list of tokens to validate. Unleash will validate each token you provide. For each valid token you provide, Unleash will return the token along with its type and which projects it has access to.', 'This operation accepts a list of tokens to validate. Unleash will validate each token you provide. For each valid token you provide, Unleash will return the token along with its type and which projects it has access to.',