Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
m-team
oidc
mytoken
server
Commits
dfb5c2b3
Verified
Commit
dfb5c2b3
authored
2 years ago
by
Gabriel Zachmann
Browse files
Options
Downloads
Patches
Plain Diff
fix using x-www-from-urlencoding on revocation endpoint
parent
1fbfe32f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
internal/endpoints/revocation/revocationEndpoint.go
+1
-2
1 addition, 2 deletions
internal/endpoints/revocation/revocationEndpoint.go
with
2 additions
and
2 deletions
CHANGELOG.md
+
1
−
0
View file @
dfb5c2b3
...
...
@@ -17,6 +17,7 @@
### Bugfixes
-
Fixed a bug where mytokens could not be used with x-www-form-urlencoding
-
Fixed a bug where
`x-www-form-urlencoding`
was not accepted on token revocation endpoint
### Dependencies
...
...
This diff is collapsed.
Click to expand it.
internal/endpoints/revocation/revocationEndpoint.go
+
1
−
2
View file @
dfb5c2b3
package
revocation
import
(
"encoding/json"
"time"
"github.com/gofiber/fiber/v2"
...
...
@@ -28,7 +27,7 @@ func HandleRevoke(ctx *fiber.Ctx) error {
rlog
:=
logger
.
GetRequestLogger
(
ctx
)
rlog
.
Debug
(
"Handle revocation request"
)
req
:=
api
.
RevocationRequest
{}
if
err
:=
json
.
Unmarshal
(
ctx
.
Body
(),
&
req
);
err
!=
nil
{
if
err
:=
ctx
.
Body
Parser
(
&
req
);
err
!=
nil
{
return
model
.
ErrorToBadRequestErrorResponse
(
err
)
.
Send
(
ctx
)
}
rlog
.
Trace
(
"Parsed mytoken request"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment