Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b339c4c
initial work
ecrupper Feb 28, 2023
746b399
Merge branch 'main' into worker-auth/complete
ecrupper Mar 9, 2023
8bf613c
adding symmetric token handling
ecrupper Mar 14, 2023
c1f1463
incorporating constants
ecrupper Mar 15, 2023
1da6bdd
convert admin register token endpoint to be POST
ecrupper Mar 15, 2023
4d7b735
pulling in types update
ecrupper Mar 21, 2023
e925301
Merge branch 'main' into worker-auth/complete
ecrupper Mar 21, 2023
e620fa3
add server mocks and json tags to check in resp
ecrupper Mar 21, 2023
febb17d
handle symmetric token in worker endpoints
ecrupper Mar 21, 2023
4a12e25
appease linter overlord
ecrupper Mar 21, 2023
25118c9
return properly when met with server worker token
ecrupper Mar 22, 2023
ad7db54
add proper return to update worker too
ecrupper Mar 22, 2023
467b47f
add back actually updating the worker
ecrupper Mar 22, 2023
f6dea85
add comments to create and update worker api func
ecrupper Mar 22, 2023
85c0efd
add new endpoint for refresh, remove plat admin access to worker auth…
ecrupper Mar 23, 2023
75d4c1f
mocks mocks mocks
ecrupper Mar 23, 2023
fa8ba2c
Merge branch 'main' into worker-auth/complete
ecrupper Mar 23, 2023
bbdcfc5
fix mock, fix status returns, move check in update to refresh
ecrupper Mar 23, 2023
2f49e8e
Merge branch 'worker-auth/complete' of github.com:go-vela/server into…
ecrupper Mar 23, 2023
7bc1b5c
update mock validate http method
ecrupper Mar 23, 2023
0014ccd
use authorization not token in mock
ecrupper Mar 23, 2023
077c267
retrieve plat admin for logging in register token + swagger updates
ecrupper Mar 23, 2023
66e3642
change return type of validate token
ecrupper Mar 23, 2023
b140651
getting mocked by mock
ecrupper Mar 23, 2023
05b7cd2
update validate token mock comment
ecrupper Mar 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use authorization not token in mock
  • Loading branch information
ecrupper committed Mar 23, 2023
commit 0014ccd79ced486ec1a360deaa89b88aad9e40c0
2 changes: 1 addition & 1 deletion mock/server/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func getAuthenticateFromToken(c *gin.Context) {
func validateToken(c *gin.Context) {
err := "error"

token := c.Request.Header.Get("Token")
token := c.Request.Header.Get("Authorization")
if len(token) == 0 {
c.AbortWithStatusJSON(http.StatusUnauthorized, types.Error{Message: &err})
}
Expand Down