Skip to content

Commit 2a99653

Browse files
Alexandre Georgesnijel
authored andcommitted
feat: Add JWT leeway setting to KeycloakOAuth2 backend
1 parent d9b4c1c commit 2a99653

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

social_core/backends/keycloak.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def user_data(self, access_token, *args, **kwargs): # pylint: disable=unused-ar
133133
key=self.public_key(),
134134
algorithms=self.algorithm(),
135135
audience=self.audience(),
136+
leeway=self.setting("JWT_LEEWAY", default=0),
136137
)
137138

138139
def get_user_details(self, response):

0 commit comments

Comments
 (0)