Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dostonbek1 committed Feb 17, 2025
1 parent 595a0fc commit a441071
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ansible_base/jwt_consumer/common/auth.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
from datetime import datetime
from typing import Optional, Tuple

import jwt
from datetime import datetime
from django.apps import apps
from django.conf import settings
from django.contrib.auth import get_user_model
Expand Down Expand Up @@ -213,13 +213,13 @@ def validate_token(self, unencrypted_token, decryption_key):

def decode_jwt_token(self, unencrypted_token, decryption_key, options):
return jwt.decode(
unencrypted_token,
decryption_key,
audience="ansible-services",
options=options,
issuer="ansible-issuer",
algorithms=["RS256"],
)
unencrypted_token,
decryption_key,
audience="ansible-services",
options=options,
issuer="ansible-issuer",
algorithms=["RS256"],
)

def get_role_definition(self, name: str) -> Optional[Model]:
"""Simply get the RoleDefinition from the database if it exists and handler corner cases
Expand Down

0 comments on commit a441071

Please sign in to comment.