RunWhen social-auth API
The social-auth API from RunWhen — 6 operation(s) for social-auth.
The social-auth API from RunWhen — 6 operation(s) for social-auth.
openapi: 3.1.0
info:
title: papi alert-query-proxy social-auth API
description: RunWhen Platform API
version: 2.0.0
tags:
- name: social-auth
paths:
/accounts/google/login/:
get:
tags:
- social-auth
summary: Google Login
description: Initiate Google OAuth2 login.
operationId: google_login_accounts_google_login__get
parameters:
- name: next
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Next
- name: oauth_session
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Oauth Session
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/accounts/google/login/callback/:
get:
tags:
- social-auth
summary: Google Callback
description: Handle Google OAuth2 callback.
operationId: google_callback_accounts_google_login_callback__get
parameters:
- name: code
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Code
- name: state
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: State
- name: error
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Error
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/accounts/github/login/:
get:
tags:
- social-auth
summary: Github Login
description: Initiate GitHub OAuth2 login.
operationId: github_login_accounts_github_login__get
parameters:
- name: next
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Next
- name: oauth_session
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Oauth Session
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/accounts/github/login/callback/:
get:
tags:
- social-auth
summary: Github Callback
description: Handle GitHub OAuth2 callback.
operationId: github_callback_accounts_github_login_callback__get
parameters:
- name: code
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Code
- name: state
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: State
- name: error
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Error
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/accounts/gitlab/login/:
get:
tags:
- social-auth
summary: Gitlab Login
description: Initiate GitLab OAuth2 login.
operationId: gitlab_login_accounts_gitlab_login__get
parameters:
- name: next
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Next
- name: oauth_session
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Oauth Session
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/accounts/gitlab/login/callback/:
get:
tags:
- social-auth
summary: Gitlab Callback
description: Handle GitLab OAuth2 callback.
operationId: gitlab_callback_accounts_gitlab_login_callback__get
parameters:
- name: code
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Code
- name: state
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: State
- name: error
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Error
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT access token from /api/v3/token/ or Auth0 login