Skip to content

Commit

Permalink
fix(JAQPOT-214): session-checker and refresh-token (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv authored Jul 29, 2024
1 parent 3d562be commit f78cd8f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.jaqpot.api.service.authentication

import org.jaqpot.api.AuthApiDelegate
import org.springframework.http.ResponseEntity
import org.springframework.stereotype.Service

@Service
class AuthValidationService : AuthApiDelegate {
override fun validateJWT(): ResponseEntity<Unit> {
return ResponseEntity.ok().build()
}
}
14 changes: 14 additions & 0 deletions src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ servers:
- url: 'https://api.jaqpot.org'
description: Jaqpot API
paths:
/v1/auth/validate:
get:
summary: Validate JWT
description: Validate a JWT token
security:
- bearerAuth: [ ]
tags:
- auth
operationId: validateJWT
responses:
'200':
description: JWT is valid
'401':
description: Unauthorized
/v1/models:
post:
summary: Create a new model
Expand Down

0 comments on commit f78cd8f

Please sign in to comment.