Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Weblist Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Fachschaftsrat MatheInfo
Karaoke
Weblist Backend
Compare revisions
021e913cfd426fa1c4421a1221841bafe89b114e to bc3c94401c2aca2734778a8b0aea55663632040d
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
fachschaftsrat-mathematikinformatik/karaoke/weblist-backend
Select target project
No results found
bc3c94401c2aca2734778a8b0aea55663632040d
Select Git revision
Swap
Target
fachschaftsrat-mathematikinformatik/karaoke/weblist-backend
Select target project
fachschaftsrat-mathematikinformatik/karaoke/weblist-backend
1 result
021e913cfd426fa1c4421a1221841bafe89b114e
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Stop clearing Scope on refresh
· 4fd8d268
Jan Moritz Mertens
authored
11 months ago
4fd8d268
Merge branch 'scopes' into 'master'
· bc3c9440
Jan Moritz Mertens
authored
11 months ago
Stop clearing Scope on refresh See merge request
!14
bc3c9440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/oauth2/token.go
+2
-2
2 additions, 2 deletions
api/oauth2/token.go
with
2 additions
and
2 deletions
api/oauth2/token.go
View file @
bc3c9440
...
@@ -63,8 +63,8 @@ func POSTOauth2Token(c *gin.Context) {
...
@@ -63,8 +63,8 @@ func POSTOauth2Token(c *gin.Context) {
if
errPRT
!=
nil
{
if
errPRT
!=
nil
{
c
.
JSON
(
http
.
StatusUnauthorized
,
gin
.
H
{
"error_parsing_refresh_token"
:
errPRT
})
c
.
JSON
(
http
.
StatusUnauthorized
,
gin
.
H
{
"error_parsing_refresh_token"
:
errPRT
})
}
else
if
claims
,
ok
:=
parsedRefreshToken
.
Claims
.
(
*
JWTPayload
);
ok
{
}
else
if
claims
,
ok
:=
parsedRefreshToken
.
Claims
.
(
*
JWTPayload
);
ok
{
accessTokenString
,
errAT
:=
generateAccessToken
(
claims
.
UserUid
,
[]
string
{}
,
iat
)
accessTokenString
,
errAT
:=
generateAccessToken
(
claims
.
UserUid
,
claims
.
Scopes
,
iat
)
refreshTokenString
,
errRT
:=
generateRefreshToken
(
claims
.
UserUid
,
[]
string
{}
,
iat
)
refreshTokenString
,
errRT
:=
generateRefreshToken
(
claims
.
UserUid
,
claims
.
Scopes
,
iat
)
if
errRT
!=
nil
||
errAT
!=
nil
{
if
errRT
!=
nil
||
errAT
!=
nil
{
c
.
JSON
(
http
.
StatusUnauthorized
,
gin
.
H
{
"error_access_token"
:
errAT
,
"error_refresh_token"
:
errRT
})
c
.
JSON
(
http
.
StatusUnauthorized
,
gin
.
H
{
"error_access_token"
:
errAT
,
"error_refresh_token"
:
errRT
})
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.