Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam TOTP #142

Merged
merged 5 commits into from Sep 11, 2022
Merged

Steam TOTP #142

merged 5 commits into from Sep 11, 2022

Conversation

einfachIrgendwer0815
Copy link

It's basically what I have already commented on the corresponding issue (#127), but integrated into pyotp.

A new class is added in a pyotp.contrib.steam submodule. It's a subclass of pyotp.TOTP and overrides the generate_otp method. (all as mentioned in the issue here)

I also added some tests and included the new class in the API Documentation section.

@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2022

Codecov Report

Merging #142 (8b79d14) into develop (a7d6e5e) will decrease coverage by 0.86%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #142      +/-   ##
===========================================
- Coverage    98.89%   98.02%   -0.87%     
===========================================
  Files            6        8       +2     
  Lines          181      203      +22     
  Branches        38       43       +5     
===========================================
+ Hits           179      199      +20     
- Misses           1        3       +2     
  Partials         1        1              
Impacted Files Coverage Δ
src/pyotp/__init__.py 100.00% <100.00%> (ø)
src/pyotp/contrib/__init__.py 100.00% <100.00%> (ø)
src/pyotp/contrib/steam.py 100.00% <100.00%> (ø)
src/pyotp/compat.py 60.00% <0.00%> (-40.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kislyuk kislyuk merged commit d8acd41 into pyauth:develop Sep 11, 2022
@kislyuk
Copy link
Member

kislyuk commented Sep 11, 2022

Great work, thank you for your contribution!

@kislyuk kislyuk mentioned this pull request Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants