-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authmate: Add lifetime for tokens #114
authmate: Add lifetime for tokens #114
Conversation
I think we should mention the issue |
838323e
to
205650c
Compare
return 0, err | ||
} else if networkInfo, err := conn.NetworkInfo(ctx); err != nil { | ||
return 0, err | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last return
can be outside else
branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can't given the way variables are defined.
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
205650c
to
6689af5
Compare
@@ -283,7 +312,7 @@ func buildBearerTokens(key *keys.PrivateKey, table *eacl.Table, gatesKeys []*key | |||
return bearerTokens, nil | |||
} | |||
|
|||
func buildSessionToken(key *keys.PrivateKey, oid *owner.ID, ctx *session.ContainerContext, gateKey *keys.PublicKey) (*session.Token, error) { | |||
func buildSessionToken(key *keys.PrivateKey, oid *owner.ID, lifetime lifetimeOptions, ctx *session.ContainerContext, gateKey *keys.PublicKey) (*session.Token, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems there are too many arguments. Maybe we should introduce some new type?
Closes #108