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

Add /system/names/{caconnector,radius} endpoints #1785

Merged
merged 4 commits into from
Aug 14, 2019
Merged

Conversation

fredreichbier
Copy link
Contributor

@fredreichbier fredreichbier commented Aug 14, 2019

This PR adds endpoints /system/names/{caconnector,radius} which are accessible for users and admins with the respective enrollCERTIFICATE/enrollRADIUS rights. These are now used to retrieve the CA connectors and RADIUS servers during enrollment of CERTIFICATE and RADIUS tokens.

As a consequence, the /radius/ and /caconnector/ endpoints are not accessible for users anymore.

Likewise, the /privacyideaserver/ endpoints are not accessible to users anymore, because REMOTE tokens cannot be enrolled by users anyway.

This PR also fixes the enrollment of CERTIFICATE tokens: Without this PR, users cannot choose a certificate template.

Closes #1749

Friedrich Weber added 4 commits August 14, 2019 12:01
These endpoints can be accessed by users and admins to retrieve the
names of defined RADIUS servers and information about the defined CA
connectors (but not the sensitive configuration).

Fixes #1749
@codecov
Copy link

codecov bot commented Aug 14, 2019

Codecov Report

Merging #1785 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1785      +/-   ##
==========================================
+ Coverage   97.05%   97.05%   +<.01%     
==========================================
  Files         149      149              
  Lines       18114    18115       +1     
==========================================
+ Hits        17580    17581       +1     
  Misses        534      534
Impacted Files Coverage Δ
privacyidea/api/privacyideaserver.py 98.21% <ø> (-0.12%) ⬇️
privacyidea/api/caconnector.py 100% <100%> (ø) ⬆️
privacyidea/api/radiusserver.py 100% <100%> (ø) ⬆️
privacyidea/lib/caconnector.py 97.97% <100%> (+0.02%) ⬆️
privacyidea/api/before_after.py 97.93% <100%> (ø) ⬆️
privacyidea/api/system.py 97.18% <100%> (+0.28%) ⬆️

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 e35fa1f...ac41d08. Read the comment docs.

@cornelinux cornelinux merged commit c4d352f into master Aug 14, 2019
@fredreichbier fredreichbier deleted the 1765/new-endpoints branch August 14, 2019 11:47
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.

Users cannot enroll RADIUS tokens in the WebUI if a policy with scope=user is defined
2 participants