feat(auth): Add /token endpoint to request a access token
This commit is contained in:
12
app/controllers/userinfo.go
Normal file
12
app/controllers/userinfo.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"git.secnex.io/secnex/masterlog"
|
||||
"git.secnex.io/secnex/oauth2-api/utils"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func UserinfoController(c *fiber.Ctx) error {
|
||||
masterlog.Debug("Userinfo request received", map[string]interface{}{"path": c.Path()})
|
||||
return utils.NewHTTPResponse(fiber.StatusOK, &fiber.Map{"message": "Userinfo request received"}, "", nil, nil).Send(c)
|
||||
}
|
||||
Reference in New Issue
Block a user