Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
go-orusapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orus-io
go-orusapi
Commits
8f17e465eba0
Commit
8f17e465eba0
authored
4 weeks ago
by
Christophe de Vienne
Browse files
Options
Downloads
Patches
Plain Diff
--token-secret is now mandatory
parent
8fb2f8eb5f06
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#121129
failed
4 weeks ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
auth/auth.go
+1
-1
1 addition, 1 deletion
auth/auth.go
with
1 addition
and
1 deletion
auth/auth.go
+
1
−
1
View file @
8f17e465
...
...
@@ -36,7 +36,7 @@
//
//nolint:lll
type
TokenOptions
struct
{
SecretOpt
func
(
string
)
error
`long:"token-secret" env:"AUTH_TOKEN_SECRET" ini-name:"secret" description:"hex HMAC256/AES256 secret for signing/verifying JWT & crypting (32 bytes)"`
SecretOpt
func
(
string
)
error
`long:"token-secret" env:"AUTH_TOKEN_SECRET" ini-name:"secret"
required:"t"
description:"hex HMAC256/AES256 secret for signing/verifying JWT & crypting (32 bytes)"`
Secret
[]
byte
`no-flag:"t"`
Expiration
time
.
Duration
`no-flag:"t"`
ExpirationOpt
func
(
string
)
error
`long:"token-expiration" ini-name:"expiration" required:"false" description:"Expiration time of the generated tokens" default:"5m"`
...
...
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