chore: tag deprecated platform oauth endpoints in api v2 (#26873)
* chore: tag deprecated platform oauth endpoints in api v2 * fixup! chore: tag deprecated platform oauth endpoints in api v2 * fixup! fixup! chore: tag deprecated platform oauth endpoints in api v2 * chore: fix docs.json mintlify * chore: fix docs.json mintlify
This commit is contained in:
1 parent
42531db484
commit
eee31d6e9e
6 files changed
+914
-919
No files matched your search
@@ -1,11 +1,4 @@
|
|||||||
import { ProviderVerifyAccessTokenOutput } from "@/ee/provider/outputs/verify-access-token.output";
|
import { SUCCESS_STATUS } from "@calcom/platform-constants";
|
||||||
import { ProviderVerifyClientOutput } from "@/ee/provider/outputs/verify-client.output";
|
|
||||||
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
|
||||||
import { ACCESS_TOKEN_HEADER } from "@/lib/docs/headers";
|
|
||||||
import { GetUser } from "@/modules/auth/decorators/get-user/get-user.decorator";
|
|
||||||
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
|
|
||||||
import { OAuthClientRepository } from "@/modules/oauth-clients/oauth-client.repository";
|
|
||||||
import { UserWithProfile } from "@/modules/users/users.repository";
|
|
||||||
import {
|
import {
|
||||||
BadRequestException,
|
BadRequestException,
|
||||||
Controller,
|
Controller,
|
||||||
@@ -18,8 +11,14 @@ import {
|
|||||||
UseGuards,
|
UseGuards,
|
||||||
} from "@nestjs/common";
|
} from "@nestjs/common";
|
||||||
import { ApiExcludeController, ApiHeader, ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
|
import { ApiExcludeController, ApiHeader, ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
|
||||||
|
import { ProviderVerifyAccessTokenOutput } from "@/ee/provider/outputs/verify-access-token.output";
|
||||||
import { SUCCESS_STATUS } from "@calcom/platform-constants";
|
import { ProviderVerifyClientOutput } from "@/ee/provider/outputs/verify-client.output";
|
||||||
|
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
||||||
|
import { ACCESS_TOKEN_HEADER } from "@/lib/docs/headers";
|
||||||
|
import { GetUser } from "@/modules/auth/decorators/get-user/get-user.decorator";
|
||||||
|
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
|
||||||
|
import { OAuthClientRepository } from "@/modules/oauth-clients/oauth-client.repository";
|
||||||
|
import { UserWithProfile } from "@/modules/users/users.repository";
|
||||||
|
|
||||||
@Controller({
|
@Controller({
|
||||||
path: "/v2/provider",
|
path: "/v2/provider",
|
||||||
@@ -28,7 +27,7 @@ import { SUCCESS_STATUS } from "@calcom/platform-constants";
|
|||||||
// note(Lauris): this controller is used by useOAuthClient and useOAuthFlow internal hooks and if customer
|
// note(Lauris): this controller is used by useOAuthClient and useOAuthFlow internal hooks and if customer
|
||||||
// wants to know if access token is expired then the flow is to make request and then receive message it expired.
|
// wants to know if access token is expired then the flow is to make request and then receive message it expired.
|
||||||
@ApiExcludeController()
|
@ApiExcludeController()
|
||||||
@DocsTags("Platform / Cal Provider")
|
@DocsTags("Deprecated: Platform / Cal Provider")
|
||||||
export class CalProviderController {
|
export class CalProviderController {
|
||||||
constructor(private readonly oauthClientRepository: OAuthClientRepository) {}
|
constructor(private readonly oauthClientRepository: OAuthClientRepository) {}
|
||||||
|
|
||||||
|
|||||||
+22
-23
@@ -1,3 +1,23 @@
|
|||||||
|
import { SUCCESS_STATUS, X_CAL_SECRET_KEY } from "@calcom/platform-constants";
|
||||||
|
import { MembershipRole } from "@calcom/platform-libraries";
|
||||||
|
import type { User } from "@calcom/prisma/client";
|
||||||
|
import {
|
||||||
|
Body,
|
||||||
|
Controller,
|
||||||
|
Delete,
|
||||||
|
Get,
|
||||||
|
HttpCode,
|
||||||
|
HttpStatus,
|
||||||
|
Logger,
|
||||||
|
NotFoundException,
|
||||||
|
Param,
|
||||||
|
ParseIntPipe,
|
||||||
|
Patch,
|
||||||
|
Post,
|
||||||
|
Query,
|
||||||
|
UseGuards,
|
||||||
|
} from "@nestjs/common";
|
||||||
|
import { ApiHeader, ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
|
||||||
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
||||||
import { GetOrgId } from "@/modules/auth/decorators/get-org-id/get-org-id.decorator";
|
import { GetOrgId } from "@/modules/auth/decorators/get-org-id/get-org-id.decorator";
|
||||||
import { MembershipRoles } from "@/modules/auth/decorators/roles/membership-roles.decorator";
|
import { MembershipRoles } from "@/modules/auth/decorators/roles/membership-roles.decorator";
|
||||||
@@ -11,40 +31,19 @@ import { TOKENS_DOCS } from "@/modules/oauth-clients/controllers/oauth-flow/oaut
|
|||||||
import { KeysResponseDto } from "@/modules/oauth-clients/controllers/oauth-flow/responses/KeysResponse.dto";
|
import { KeysResponseDto } from "@/modules/oauth-clients/controllers/oauth-flow/responses/KeysResponse.dto";
|
||||||
import { OAuthClientGuard } from "@/modules/oauth-clients/guards/oauth-client-guard";
|
import { OAuthClientGuard } from "@/modules/oauth-clients/guards/oauth-client-guard";
|
||||||
import { OAuthClientRepository } from "@/modules/oauth-clients/oauth-client.repository";
|
import { OAuthClientRepository } from "@/modules/oauth-clients/oauth-client.repository";
|
||||||
import { OAuthClientUsersOutputService } from "@/modules/oauth-clients/services/oauth-clients-users-output.service";
|
|
||||||
import { OAuthClientUsersService } from "@/modules/oauth-clients/services/oauth-clients-users.service";
|
import { OAuthClientUsersService } from "@/modules/oauth-clients/services/oauth-clients-users.service";
|
||||||
|
import { OAuthClientUsersOutputService } from "@/modules/oauth-clients/services/oauth-clients-users-output.service";
|
||||||
import { TokensRepository } from "@/modules/tokens/tokens.repository";
|
import { TokensRepository } from "@/modules/tokens/tokens.repository";
|
||||||
import { CreateManagedUserInput } from "@/modules/users/inputs/create-managed-user.input";
|
import { CreateManagedUserInput } from "@/modules/users/inputs/create-managed-user.input";
|
||||||
import { UpdateManagedUserInput } from "@/modules/users/inputs/update-managed-user.input";
|
import { UpdateManagedUserInput } from "@/modules/users/inputs/update-managed-user.input";
|
||||||
import { UsersRepository } from "@/modules/users/users.repository";
|
import { UsersRepository } from "@/modules/users/users.repository";
|
||||||
import {
|
|
||||||
Body,
|
|
||||||
Controller,
|
|
||||||
Post,
|
|
||||||
Logger,
|
|
||||||
UseGuards,
|
|
||||||
Get,
|
|
||||||
HttpCode,
|
|
||||||
HttpStatus,
|
|
||||||
Param,
|
|
||||||
Patch,
|
|
||||||
Delete,
|
|
||||||
Query,
|
|
||||||
NotFoundException,
|
|
||||||
ParseIntPipe,
|
|
||||||
} from "@nestjs/common";
|
|
||||||
import { ApiOperation, ApiTags as DocsTags, ApiHeader } from "@nestjs/swagger";
|
|
||||||
|
|
||||||
import { SUCCESS_STATUS, X_CAL_SECRET_KEY } from "@calcom/platform-constants";
|
|
||||||
import { MembershipRole } from "@calcom/platform-libraries";
|
|
||||||
import type { User } from "@calcom/prisma/client";
|
|
||||||
|
|
||||||
@Controller({
|
@Controller({
|
||||||
path: "/v2/oauth-clients/:clientId/users",
|
path: "/v2/oauth-clients/:clientId/users",
|
||||||
version: API_VERSIONS_VALUES,
|
version: API_VERSIONS_VALUES,
|
||||||
})
|
})
|
||||||
@UseGuards(ApiAuthGuard, OAuthClientGuard, OrganizationRolesGuard)
|
@UseGuards(ApiAuthGuard, OAuthClientGuard, OrganizationRolesGuard)
|
||||||
@DocsTags("Platform / Managed Users")
|
@DocsTags("Deprecated: Platform / Managed Users")
|
||||||
@ApiHeader({
|
@ApiHeader({
|
||||||
name: X_CAL_SECRET_KEY,
|
name: X_CAL_SECRET_KEY,
|
||||||
description: "OAuth client secret key",
|
description: "OAuth client secret key",
|
||||||
|
|||||||
+9
-10
@@ -1,3 +1,10 @@
|
|||||||
|
import { SUCCESS_STATUS, X_CAL_SECRET_KEY } from "@calcom/platform-constants";
|
||||||
|
import { MembershipRole } from "@calcom/platform-libraries";
|
||||||
|
import { SkipTakePagination } from "@calcom/platform-types";
|
||||||
|
import type { Webhook } from "@calcom/prisma/client";
|
||||||
|
import { Body, Controller, Delete, Get, Param, Patch, Post, Query, UseGuards } from "@nestjs/common";
|
||||||
|
import { ApiHeader, ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
|
||||||
|
import { plainToClass } from "class-transformer";
|
||||||
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
||||||
import { MembershipRoles } from "@/modules/auth/decorators/roles/membership-roles.decorator";
|
import { MembershipRoles } from "@/modules/auth/decorators/roles/membership-roles.decorator";
|
||||||
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
|
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
|
||||||
@@ -6,8 +13,8 @@ import { GetWebhook } from "@/modules/webhooks/decorators/get-webhook-decorator"
|
|||||||
import { IsOAuthClientWebhookGuard } from "@/modules/webhooks/guards/is-oauth-client-webhook-guard";
|
import { IsOAuthClientWebhookGuard } from "@/modules/webhooks/guards/is-oauth-client-webhook-guard";
|
||||||
import { CreateWebhookInputDto, UpdateWebhookInputDto } from "@/modules/webhooks/inputs/webhook.input";
|
import { CreateWebhookInputDto, UpdateWebhookInputDto } from "@/modules/webhooks/inputs/webhook.input";
|
||||||
import {
|
import {
|
||||||
OAuthClientWebhookOutputResponseDto,
|
|
||||||
OAuthClientWebhookOutputDto,
|
OAuthClientWebhookOutputDto,
|
||||||
|
OAuthClientWebhookOutputResponseDto,
|
||||||
OAuthClientWebhooksOutputResponseDto,
|
OAuthClientWebhooksOutputResponseDto,
|
||||||
} from "@/modules/webhooks/outputs/oauth-client-webhook.output";
|
} from "@/modules/webhooks/outputs/oauth-client-webhook.output";
|
||||||
import { DeleteManyWebhooksOutputResponseDto } from "@/modules/webhooks/outputs/webhook.output";
|
import { DeleteManyWebhooksOutputResponseDto } from "@/modules/webhooks/outputs/webhook.output";
|
||||||
@@ -15,14 +22,6 @@ import { PartialWebhookInputPipe, WebhookInputPipe } from "@/modules/webhooks/pi
|
|||||||
import { WebhookOutputPipe } from "@/modules/webhooks/pipes/WebhookOutputPipe";
|
import { WebhookOutputPipe } from "@/modules/webhooks/pipes/WebhookOutputPipe";
|
||||||
import { OAuthClientWebhooksService } from "@/modules/webhooks/services/oauth-clients-webhooks.service";
|
import { OAuthClientWebhooksService } from "@/modules/webhooks/services/oauth-clients-webhooks.service";
|
||||||
import { WebhooksService } from "@/modules/webhooks/services/webhooks.service";
|
import { WebhooksService } from "@/modules/webhooks/services/webhooks.service";
|
||||||
import { Controller, Post, Body, UseGuards, Get, Param, Query, Delete, Patch } from "@nestjs/common";
|
|
||||||
import { ApiHeader, ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
|
|
||||||
import { plainToClass } from "class-transformer";
|
|
||||||
|
|
||||||
import { SUCCESS_STATUS, X_CAL_SECRET_KEY } from "@calcom/platform-constants";
|
|
||||||
import { MembershipRole } from "@calcom/platform-libraries";
|
|
||||||
import { SkipTakePagination } from "@calcom/platform-types";
|
|
||||||
import type { Webhook } from "@calcom/prisma/client";
|
|
||||||
|
|
||||||
import { OAuthClientGuard } from "../../guards/oauth-client-guard";
|
import { OAuthClientGuard } from "../../guards/oauth-client-guard";
|
||||||
|
|
||||||
@@ -31,7 +30,7 @@ import { OAuthClientGuard } from "../../guards/oauth-client-guard";
|
|||||||
version: API_VERSIONS_VALUES,
|
version: API_VERSIONS_VALUES,
|
||||||
})
|
})
|
||||||
@UseGuards(ApiAuthGuard, OrganizationRolesGuard, OAuthClientGuard)
|
@UseGuards(ApiAuthGuard, OrganizationRolesGuard, OAuthClientGuard)
|
||||||
@DocsTags("Platform / Webhooks")
|
@DocsTags("Deprecated: Platform / Webhooks")
|
||||||
@ApiHeader({
|
@ApiHeader({
|
||||||
name: X_CAL_SECRET_KEY,
|
name: X_CAL_SECRET_KEY,
|
||||||
description: "OAuth client secret key",
|
description: "OAuth client secret key",
|
||||||
|
|||||||
+27
-28
@@ -1,3 +1,28 @@
|
|||||||
|
import { SUCCESS_STATUS } from "@calcom/platform-constants";
|
||||||
|
import { MembershipRole } from "@calcom/platform-libraries";
|
||||||
|
import { CreateOAuthClientInput, Pagination, UpdateOAuthClientInput } from "@calcom/platform-types";
|
||||||
|
import {
|
||||||
|
BadRequestException,
|
||||||
|
Body,
|
||||||
|
Controller,
|
||||||
|
Delete,
|
||||||
|
Get,
|
||||||
|
HttpCode,
|
||||||
|
HttpStatus,
|
||||||
|
Logger,
|
||||||
|
Param,
|
||||||
|
Patch,
|
||||||
|
Post,
|
||||||
|
Query,
|
||||||
|
UseGuards,
|
||||||
|
} from "@nestjs/common";
|
||||||
|
import {
|
||||||
|
ApiExcludeEndpoint,
|
||||||
|
ApiHeader,
|
||||||
|
ApiOperation,
|
||||||
|
ApiTags,
|
||||||
|
ApiCreatedResponse as DocsCreatedResponse,
|
||||||
|
} from "@nestjs/swagger";
|
||||||
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
||||||
import { API_KEY_HEADER } from "@/lib/docs/headers";
|
import { API_KEY_HEADER } from "@/lib/docs/headers";
|
||||||
import { GetOrgId } from "@/modules/auth/decorators/get-org-id/get-org-id.decorator";
|
import { GetOrgId } from "@/modules/auth/decorators/get-org-id/get-org-id.decorator";
|
||||||
@@ -9,42 +34,16 @@ import { CreateOAuthClientResponseDto } from "@/modules/oauth-clients/controller
|
|||||||
import { GetOAuthClientResponseDto } from "@/modules/oauth-clients/controllers/oauth-clients/responses/GetOAuthClientResponse.dto";
|
import { GetOAuthClientResponseDto } from "@/modules/oauth-clients/controllers/oauth-clients/responses/GetOAuthClientResponse.dto";
|
||||||
import { GetOAuthClientsResponseDto } from "@/modules/oauth-clients/controllers/oauth-clients/responses/GetOAuthClientsResponse.dto";
|
import { GetOAuthClientsResponseDto } from "@/modules/oauth-clients/controllers/oauth-clients/responses/GetOAuthClientsResponse.dto";
|
||||||
import { OAuthClientGuard } from "@/modules/oauth-clients/guards/oauth-client-guard";
|
import { OAuthClientGuard } from "@/modules/oauth-clients/guards/oauth-client-guard";
|
||||||
import { OAuthClientUsersOutputService } from "@/modules/oauth-clients/services/oauth-clients-users-output.service";
|
|
||||||
import { OAuthClientsService } from "@/modules/oauth-clients/services/oauth-clients/oauth-clients.service";
|
import { OAuthClientsService } from "@/modules/oauth-clients/services/oauth-clients/oauth-clients.service";
|
||||||
|
import { OAuthClientUsersOutputService } from "@/modules/oauth-clients/services/oauth-clients-users-output.service";
|
||||||
import { OrganizationsRepository } from "@/modules/organizations/index/organizations.repository";
|
import { OrganizationsRepository } from "@/modules/organizations/index/organizations.repository";
|
||||||
import { UsersRepository } from "@/modules/users/users.repository";
|
import { UsersRepository } from "@/modules/users/users.repository";
|
||||||
import {
|
|
||||||
Body,
|
|
||||||
Controller,
|
|
||||||
Query,
|
|
||||||
Get,
|
|
||||||
Post,
|
|
||||||
Patch,
|
|
||||||
Delete,
|
|
||||||
Param,
|
|
||||||
HttpCode,
|
|
||||||
HttpStatus,
|
|
||||||
Logger,
|
|
||||||
UseGuards,
|
|
||||||
BadRequestException,
|
|
||||||
} from "@nestjs/common";
|
|
||||||
import {
|
|
||||||
ApiCreatedResponse as DocsCreatedResponse,
|
|
||||||
ApiTags,
|
|
||||||
ApiOperation,
|
|
||||||
ApiExcludeEndpoint,
|
|
||||||
ApiHeader,
|
|
||||||
} from "@nestjs/swagger";
|
|
||||||
|
|
||||||
import { SUCCESS_STATUS } from "@calcom/platform-constants";
|
|
||||||
import { MembershipRole } from "@calcom/platform-libraries";
|
|
||||||
import { CreateOAuthClientInput, UpdateOAuthClientInput, Pagination } from "@calcom/platform-types";
|
|
||||||
|
|
||||||
@Controller({
|
@Controller({
|
||||||
path: "/v2/oauth-clients",
|
path: "/v2/oauth-clients",
|
||||||
version: API_VERSIONS_VALUES,
|
version: API_VERSIONS_VALUES,
|
||||||
})
|
})
|
||||||
@ApiTags("OAuth Clients")
|
@ApiTags("Deprecated: Platform OAuth Clients")
|
||||||
@UseGuards(ApiAuthGuard, OrganizationRolesGuard)
|
@UseGuards(ApiAuthGuard, OrganizationRolesGuard)
|
||||||
@ApiHeader(API_KEY_HEADER)
|
@ApiHeader(API_KEY_HEADER)
|
||||||
export class OAuthClientsController {
|
export class OAuthClientsController {
|
||||||
|
|||||||
+16
-17
@@ -1,15 +1,4 @@
|
|||||||
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
import { SUCCESS_STATUS, X_CAL_SECRET_KEY } from "@calcom/platform-constants";
|
||||||
import { isOriginAllowed } from "@/lib/is-origin-allowed/is-origin-allowed";
|
|
||||||
import { GetUser } from "@/modules/auth/decorators/get-user/get-user.decorator";
|
|
||||||
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
|
|
||||||
import { NextAuthGuard } from "@/modules/auth/guards/next-auth/next-auth.guard";
|
|
||||||
import { KeysResponseDto } from "@/modules/oauth-clients/controllers/oauth-flow/responses/KeysResponse.dto";
|
|
||||||
import { OAuthAuthorizeInput } from "@/modules/oauth-clients/inputs/authorize.input";
|
|
||||||
import { ExchangeAuthorizationCodeInput } from "@/modules/oauth-clients/inputs/exchange-code.input";
|
|
||||||
import { RefreshTokenInput } from "@/modules/oauth-clients/inputs/refresh-token.input";
|
|
||||||
import { OAuthClientRepository } from "@/modules/oauth-clients/oauth-client.repository";
|
|
||||||
import { OAuthFlowService } from "@/modules/oauth-clients/services/oauth-flow.service";
|
|
||||||
import { TokensRepository } from "@/modules/tokens/tokens.repository";
|
|
||||||
import {
|
import {
|
||||||
BadRequestException,
|
BadRequestException,
|
||||||
Body,
|
Body,
|
||||||
@@ -23,14 +12,24 @@ import {
|
|||||||
UseGuards,
|
UseGuards,
|
||||||
} from "@nestjs/common";
|
} from "@nestjs/common";
|
||||||
import {
|
import {
|
||||||
ApiTags as DocsTags,
|
ApiOperation,
|
||||||
ApiExcludeEndpoint as DocsExcludeEndpoint,
|
ApiExcludeEndpoint as DocsExcludeEndpoint,
|
||||||
ApiHeader as DocsHeader,
|
ApiHeader as DocsHeader,
|
||||||
ApiOperation,
|
ApiTags as DocsTags,
|
||||||
} from "@nestjs/swagger";
|
} from "@nestjs/swagger";
|
||||||
import { Response as ExpressResponse } from "express";
|
import { Response as ExpressResponse } from "express";
|
||||||
|
import { API_VERSIONS_VALUES } from "@/lib/api-versions";
|
||||||
import { SUCCESS_STATUS, X_CAL_SECRET_KEY } from "@calcom/platform-constants";
|
import { isOriginAllowed } from "@/lib/is-origin-allowed/is-origin-allowed";
|
||||||
|
import { GetUser } from "@/modules/auth/decorators/get-user/get-user.decorator";
|
||||||
|
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
|
||||||
|
import { NextAuthGuard } from "@/modules/auth/guards/next-auth/next-auth.guard";
|
||||||
|
import { KeysResponseDto } from "@/modules/oauth-clients/controllers/oauth-flow/responses/KeysResponse.dto";
|
||||||
|
import { OAuthAuthorizeInput } from "@/modules/oauth-clients/inputs/authorize.input";
|
||||||
|
import { ExchangeAuthorizationCodeInput } from "@/modules/oauth-clients/inputs/exchange-code.input";
|
||||||
|
import { RefreshTokenInput } from "@/modules/oauth-clients/inputs/refresh-token.input";
|
||||||
|
import { OAuthClientRepository } from "@/modules/oauth-clients/oauth-client.repository";
|
||||||
|
import { OAuthFlowService } from "@/modules/oauth-clients/services/oauth-flow.service";
|
||||||
|
import { TokensRepository } from "@/modules/tokens/tokens.repository";
|
||||||
|
|
||||||
export const TOKENS_DOCS = `Access token is valid for 60 minutes and refresh token for 1 year. Make sure to store them in your database, for example, in your User database model \`calAccessToken\` and \`calRefreshToken\` fields.
|
export const TOKENS_DOCS = `Access token is valid for 60 minutes and refresh token for 1 year. Make sure to store them in your database, for example, in your User database model \`calAccessToken\` and \`calRefreshToken\` fields.
|
||||||
Response also contains \`accessTokenExpiresAt\` and \`refreshTokenExpiresAt\` fields, but if you decode the jwt token the payload will contain \`clientId\` (OAuth client ID), \`ownerId\` (user to whom token belongs ID), \`iat\` (issued at time) and \`expiresAt\` (when does the token expire) fields.`;
|
Response also contains \`accessTokenExpiresAt\` and \`refreshTokenExpiresAt\` fields, but if you decode the jwt token the payload will contain \`clientId\` (OAuth client ID), \`ownerId\` (user to whom token belongs ID), \`iat\` (issued at time) and \`expiresAt\` (when does the token expire) fields.`;
|
||||||
@@ -109,7 +108,7 @@ export class OAuthFlowController {
|
|||||||
@Post("/refresh")
|
@Post("/refresh")
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
@UseGuards(ApiAuthGuard)
|
@UseGuards(ApiAuthGuard)
|
||||||
@DocsTags("Platform / Managed Users")
|
@DocsTags("Deprecated: Platform / Managed Users")
|
||||||
@DocsHeader({
|
@DocsHeader({
|
||||||
name: X_CAL_SECRET_KEY,
|
name: X_CAL_SECRET_KEY,
|
||||||
description: "OAuth client secret key.",
|
description: "OAuth client secret key.",
|
||||||
|
|||||||
+830
-830
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user