feat: add simple Oauth2 logic for github
Some checks failed
Backend ci / build (push) Has been cancelled
Some checks failed
Backend ci / build (push) Has been cancelled
This commit is contained in:
@@ -15,6 +15,32 @@ const docTemplate = `{
|
||||
"host": "{{.Host}}",
|
||||
"basePath": "{{.BasePath}}",
|
||||
"paths": {
|
||||
"/callback": {
|
||||
"get": {
|
||||
"description": "Callback for oauth2 providers",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"auth"
|
||||
],
|
||||
"summary": "Callback for oauth2 providers",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/posts": {
|
||||
"get": {
|
||||
"description": "Get all posts",
|
||||
|
||||
@@ -4,6 +4,32 @@
|
||||
"contact": {}
|
||||
},
|
||||
"paths": {
|
||||
"/callback": {
|
||||
"get": {
|
||||
"description": "Callback for oauth2 providers",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"auth"
|
||||
],
|
||||
"summary": "Callback for oauth2 providers",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/posts": {
|
||||
"get": {
|
||||
"description": "Get all posts",
|
||||
|
||||
@@ -32,6 +32,23 @@ definitions:
|
||||
info:
|
||||
contact: {}
|
||||
paths:
|
||||
/callback:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Callback for oauth2 providers
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
summary: Callback for oauth2 providers
|
||||
tags:
|
||||
- auth
|
||||
/posts:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user