diff --git a/CHANGELOG.md b/CHANGELOG.md index a09c437..d82ea3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +- Adds new response for `/appid-//recipe/session` when the user is not in the tenant + ## [5.1.1] - Fixes response schema of thirdparty signInUp POST diff --git a/api_spec.yaml b/api_spec.yaml index 531badc..b66ed11 100644 --- a/api_spec.yaml +++ b/api_spec.yaml @@ -3161,18 +3161,27 @@ paths: content: application/json: schema: - type: object - properties: - status: - $ref: '#/components/schemas/statusOK' - session: - $ref: '#/components/schemas/session' - accessToken: - $ref: '#/components/schemas/cookieInfo' - refreshToken: - $ref: '#/components/schemas/cookieInfo' - antiCsrfToken: - $ref: '#/components/schemas/token' + oneOf: + - type: object + properties: + status: + $ref: '#/components/schemas/statusOK' + session: + $ref: '#/components/schemas/session' + accessToken: + $ref: '#/components/schemas/cookieInfo' + refreshToken: + $ref: '#/components/schemas/cookieInfo' + antiCsrfToken: + $ref: '#/components/schemas/token' + + - type: object + properties: + status: + type: string + enum: ['USER_DOES_NOT_BELONG_TO_TENANT_ERROR'] + message: + type: string '400': $ref: '#/components/responses/400'