Skip to content

Commit

Permalink
appease flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
asedeno committed Jan 6, 2024
1 parent 208137e commit bb5e834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roost_backend/tests/test_kerberos.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# pylint: disable=protected-access


class KerberosTests(unittest.TestCase):
realm = 'EXAMPLE.COM'
client_princ = '[email protected]'
Expand Down
2 changes: 2 additions & 0 deletions roost_backend/utils/kerberos.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def _b64(data):

return k5.Credentials(ctx).copy_from_cstruct(kcreds)


def add_credential_to_ccache(creds, princ=None):
# pylint: disable=protected-access, too-many-locals, too-many-statements
# all this should be abstracted away somewhere else.
Expand Down Expand Up @@ -156,6 +157,7 @@ def verify_same_princ(client_name):
0x08, # KRB5_TC_MATCH_TIMES_EXACT
expired._handle)


def _get_zephyr_creds(realm):
context = k5.Context()
ccache = context.cc_default()
Expand Down

0 comments on commit bb5e834

Please sign in to comment.