-
Notifications
You must be signed in to change notification settings - Fork 95
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
(External) Authentication layer #1337
base: skosmos-2
Are you sure you want to change the base?
Conversation
removed whitespace char
Codecov Report
@@ Coverage Diff @@
## master #1337 +/- ##
============================================
- Coverage 70.68% 69.85% -0.83%
- Complexity 1646 1667 +21
============================================
Files 32 33 +1
Lines 3786 3835 +49
============================================
+ Hits 2676 2679 +3
- Misses 1110 1156 +46
Continue to review full report at Codecov.
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Thanks for the PR @YOUR1 and sorry for the somewhat late response. Can you explain why you decided to create an authentication layer in PHP? The alternative would be to configure Apache with authentication and authorization using one of the many |
No problem. Using mod_auth implies that you are using apache2 as a webserver. That's obviously not always the case. Also; as you mentioned - mod_auth has its own limitations. We are using SimpleSamlPHP as a authentication backend for some of our clients; and mod_auth couldn't support that the way we wanted. Also; this adds more flexibility to add more/different authentication methods. |
Authentication as part of Skosmos would make more sense if only some vocabularies are non-public. If everything is put behind login, a proxy would be a cleaner solution. |
Skosmos (and its REST API) still has global search and other ways to access combinations of vocabularies. Having to hide some vocabularies entirely from unauthorized would take a lot of work. Right now the assumption is that everything is public information. |
So then there is no need to add authentication functionality into Skosmos: the question of access is better solved on a different layer (e.g. webserver/proxy) than the PHP code of Skosmos. Just my 2 cents. |
Reasons for creating this PR
We are in need of a Skosmos instance that is not available for the public, but only available through an authentication layer (SimpleSamlPHP in our case).
Description of the changes in this PR
Added an authentication layer, with minimal changes in the existing model and controller classes.