Skip to content

Commit

Permalink
feat: remove endpoints at token payload
Browse files Browse the repository at this point in the history
Signed-off-by: ImMin5 <[email protected]>
  • Loading branch information
ImMin5 committed Nov 13, 2024
1 parent 890168c commit 344fa6c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/spaceone/identity/lib/key_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def generate_token(
permissions: list = None,
projects: list = None,
injected_params: dict = None,
endpoints: list = None,
identity_base_url: str = None,
) -> str:
payload = {
Expand Down Expand Up @@ -76,9 +75,6 @@ def generate_token(
if injected_params:
payload["injected_params"] = injected_params

if endpoints:
payload["endpoints"] = endpoints

if identity_base_url:
payload["identity_base_url"] = identity_base_url

Expand All @@ -104,7 +100,6 @@ def _print_key(payload: dict):
f'projects: {payload.get("projects")},'
f'permissions: {payload.get("permissions")},'
f'injected_params: {payload.get("injected_params")},'
f'endpoints: {payload.get("endpoints")},'
f'identity_base_url: {payload.get("identity_base_url")},'
f'ver: {payload.get("ver")} )'
)

0 comments on commit 344fa6c

Please sign in to comment.