feat(auth): Add /token endpoint to request a access token

This commit is contained in:
Björn Benouarets
2026-01-27 16:37:19 +01:00
parent d8241a2491
commit b57c2511e9
4 changed files with 9 additions and 2 deletions

View File

@@ -45,6 +45,10 @@ func Authorize(userID, clientID, redirectURI, responseType, scope, state string)
authorizationCodeString := fmt.Sprintf("%s:%s", authorizationID.String(), authorizationCode)
authorizationCodeBase64 := base64.StdEncoding.EncodeToString([]byte(authorizationCodeString))
masterlog.Debug("Authorization created successfully", map[string]interface{}{"authorization_id": authorizationID.String(), "authorization_code": authorizationCode, "client_id": clientID})
masterlog.Debug("Authorization code base64", map[string]interface{}{"authorization_code_base64": authorizationCodeBase64})
masterlog.Debug("State", map[string]interface{}{"state": state})
response := AuthorizeResponse{
Code: authorizationCodeBase64,
State: state,

View File

@@ -0,0 +1 @@
package services