Closed distortedsignal closed 4 years ago
Merging #54 into master will increase coverage by
0.29%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #54 +/- ##
==========================================
+ Coverage 91.75% 92.05% +0.29%
==========================================
Files 2 2
Lines 376 390 +14
==========================================
+ Hits 345 359 +14
Misses 31 31
Impacted Files | Coverage Δ | |
---|---|---|
samlauthenticator/samlauthenticator.py | 92.03% <100.00%> (+0.29%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 6226aa5...3d667d6. Read the comment docs.
Hey @0nebody I'd appreciate if you could take a look at this and give feedback. I'll merge this in a week if I don't hear back from you.
This is a minor refactor on the role/group code, and a little on the code that returns the username as well.
I was thinking about this code over the weekend, and I realized that, even if there was no way for the user to log in via groups, we would still run the XPath to get their groups from the SAML Response. I would prefer that we only run the XPath if we have to.
There was some collateral damage to the final code that checks if the user needs to be created in the system and returns the username.
Signed-off-by: Thomas Kelley distortedsignal@gmail.com