-
Notifications
You must be signed in to change notification settings - Fork 238
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
Changes to project structure and code cleanup #155
base: remove_mcrypt
Are you sure you want to change the base?
Conversation
the cleanup is nice, but I'd like to keep the library flexible, just a thin wrapper of one-login. The more logic we put in, the easier to use, but the least cases it supports. I don't mean to make this library easier to use than OneLogin, just do all the connections it needs with Laravel. For example, why hardcode |
Well in the end you should be able to cherry pick the commits you like and leave out the ones you don't from this PR, the ideas I listed are plans that I have for continuing my own work on this library, that doesn't mean I expect you to merge it. Two versions of a library with different ideas about UX/DX should be able to coexist 😄. I hardcoded specific behaviour because I feel this library should give users less options and be more opinionated so that this library becomes smaller and easier to use. For this same reason I want to be more opinionated about how users should supply the crt/key files, less options means less code and less breakage. As I mentioned my end goal would be to implement a trait Hope this makes sense. If you are not up for merging any of what I'm describing, that's fine. Like I mentioned before I think I'm still going to experiment with these changes are see if it works like I think it might. Regardless I'd love to know what you think. |
I get your point.. I see the value on it, but we can't drop support for our current users, and both approaches have some deep differences in design. We'll need to keep updating this library a little bit to add support to newer PHP versions and keep up to date with oneLogin - I don't think we can make both compatible. May be you can do a fork |
This sort of depends on/overwrites #151
I modernised the project structure to follow psr-4 (instead of psr-0) and removed a bunch of IMO strange code. Also updated the tests, refactored the service provider and added more tests. Some of my changes might have been too aggressive (composer.json php version and changes to config for example) but we can discuss what will and won't work based around the contents of this PR.
There are a couple of other changes I'm considering:
.env
file and the use offile://
is also not my favourite so maybe we can just specify a folder and only configure filenames?Even larger changes I'd like to see eventually:
AuthorizesUsers
on the login controllerThoughts and input are very welcome 😄