Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
1fd236d1
Unverified
Commit
1fd236d1
authored
Jun 13, 2024
by
Jeffrey Morgan
Committed by
GitHub
Jun 13, 2024
Browse files
server: remove jwt decoding error (#5027)
parent
e87fc720
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
server/images.go
server/images.go
+0
-1
No files found.
server/images.go
View file @
1fd236d1
...
@@ -960,7 +960,6 @@ var errUnauthorized = fmt.Errorf("unauthorized: access denied")
...
@@ -960,7 +960,6 @@ var errUnauthorized = fmt.Errorf("unauthorized: access denied")
func
getTokenSubject
(
token
string
)
string
{
func
getTokenSubject
(
token
string
)
string
{
parts
:=
strings
.
Split
(
token
,
"."
)
parts
:=
strings
.
Split
(
token
,
"."
)
if
len
(
parts
)
!=
3
{
if
len
(
parts
)
!=
3
{
slog
.
Error
(
"jwt token does not contain 3 parts"
)
return
""
return
""
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment