Skip to content

What is the correct way to get a new accessToken with service account when the previous one is expired? #629

@volodymyr-karpov

Description

@volodymyr-karpov

Hi everyone,
I aim to integrate Keycloak authentication with my Python jobs using service accounts. Some of these jobs can run for over an hour. Access token lifetime will be 5-10 min

What is the correct approach to obtaining a new access token in this case? Is there a built-in solution, or should I implement it manually by checking the token's expiration time and requesting a new one just before the current token expires?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions