8000 issue when login on a keycloak beause of to fresh token. · Issue #973 · ansible/django-ansible-base · GitHub
[go: up one dir, main page]

Skip to content

issue when login on a keycloak beause of to fresh token. #973

Open

Description

@grimlokason

Bug Summary

Hello,

i'm encountering that error when authenticating with awx devel with that requirements files https://github.com/ansible/django-ansible-base/blob/devel/requirements/requirements_dev.txt and a keycloak.

Exception Type: ImmatureSignatureErrorException 
Value: The token is not yet valid (iat)
Exception Location:/var/lib/awx/venv/awx/lib64/python3.12/site-packages/jwt/api_jwt.py, line 333, in _validate_iatRaised during:social_django.views.complete

The issue is within PyJWT that is using IAT but it can be solved by changing the JWT_LEEWAY value in awx/settings/default.py when using social-core greater than 4.7.0 thanks to that line :
https://github.com/python-social-auth/social-core/blob/4.7.0/social_core/backends/keycloak.py#L136

Do you think that the social-core max version can be raised in all the requirements files ?

Best regards.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0