Change behaviour of authmate for session tokens. #162

Closed
opened 2025-12-28 17:36:28 +00:00 by sami · 0 comments
Owner

Originally created by @masterSplinter01 on GitHub (Jan 31, 2022).

Originally assigned to: @masterSplinter01 on GitHub.

For creating and putting session tokens we have two params: --create-session-token and --session-rules.

When only the first parameter is set it means "create session tokens with default rules",
when both of them are set it means "create session token with custom rules",
when only the second parameter is set, authmate prints Warning: rules for session token were set but --create-session flag wasn't, so session token was not created and creates a box with bearer token but without session tokes. It seems annoying, because most likely the user wanted to create session tokens but forgot to write the flag --create-session-token.

Also two params seem redundant, it'd be enough to have only --create-session-token with string value (' ' means default value) and drop --session-rules.

Originally created by @masterSplinter01 on GitHub (Jan 31, 2022). Originally assigned to: @masterSplinter01 on GitHub. For creating and putting session tokens we have two params: `--create-session-token` and `--session-rules`. When only the first parameter is set it means "create session tokens with default rules", when both of them are set it means "create session token with custom rules", when only the second parameter is set, authmate prints `Warning: rules for session token were set but --create-session flag wasn't, so session token was not created` and creates a box with bearer token but without session tokes. It seems annoying, because most likely the user wanted to create session tokens but forgot to write the flag `--create-session-token`. Also two params seem redundant, it'd be enough to have only `--create-session-token` with string value (' ' means default value) and drop `--session-rules`.
sami 2025-12-28 17:36:28 +00:00
  • closed this issue
  • added the
    auth-mate
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-s3-gw#162
No description provided.