openapi: 3.2.0 info: title: ApiVault Auth API version: 2.1.0 description: Your gateway to a world of public APIs tags: - name: Auth paths: /api/auth/google/: post: operationId: auth_google_create description: 'POST with "auth_token" Send an idtoken as from google to get user information' tags: - Auth requestBody: content: application/json: schema: $ref: '#/components/schemas/GoogleSocialAuth' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/GoogleSocialAuth' multipart/form-data: schema: $ref: '#/components/schemas/GoogleSocialAuth' required: true security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/GoogleSocialAuth' description: '' summary: Auth google create x-summary-source: derived /api/auth/token/refresh/: post: operationId: auth_token_refresh_create description: 'Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.' tags: - Auth requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenRefresh' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TokenRefresh' multipart/form-data: schema: $ref: '#/components/schemas/TokenRefresh' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/TokenRefresh' description: '' summary: Auth token refresh create x-summary-source: derived /api/auth/token/verify/: post: operationId: auth_token_verify_create description: 'Takes a token and indicates if it is valid. This view provides no information about a token''s fitness for a particular use.' tags: - Auth requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenVerify' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TokenVerify' multipart/form-data: schema: $ref: '#/components/schemas/TokenVerify' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/TokenVerify' description: '' summary: Auth token verify create x-summary-source: derived /api/auth/user/: get: operationId: auth_user_retrieve description: 'POST with "auth_token" Send an idtoken as from google to get user information' tags: - Auth security: - jwtAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/SafeUser' description: '' summary: Auth user retrieve x-summary-source: derived components: schemas: TokenVerify: type: object properties: token: type: string writeOnly: true required: - token TokenRefresh: type: object properties: access: type: string readOnly: true refresh: type: string writeOnly: true required: - access - refresh GoogleSocialAuth: type: object properties: auth_token: type: string required: - auth_token SafeUser: type: object description: A safe Serializer of the default django auth user model properties: username: type: string description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. pattern: ^[\w.@+-]+$ maxLength: 150 email: type: string format: email title: Email address maxLength: 254 picture: type: - string - 'null' format: uri maxLength: 200 required: - username securitySchemes: jwtAuth: type: http scheme: bearer bearerFormat: JWT