feat: add simple Oauth2 logic for github
Some checks failed
Backend ci / build (push) Has been cancelled

This commit is contained in:
d3m0k1d
2026-02-10 00:07:29 +03:00
parent c62dd7f421
commit 53d8760912
8 changed files with 109 additions and 18 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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: