Coder Social home page Coder Social logo

PSR-7 support about opulence HOT 4 CLOSED

peteraba avatar peteraba commented on August 13, 2024
PSR-7 support

from opulence.

Comments (4)

davidbyoung avatar davidbyoung commented on August 13, 2024

I very much understand the desire for PSR-7, but I don't think it's something I plan on supporting. IMO, it was poorly implemented (eg semi-immutability that is prone to causing bugs, clunky syntax, etc), and didn't really gain traction with the largest frameworks. I do wish PHP provided native wrappers for HTTP requests and responses, but since it doesn't, I'm left with two choices - adopt another HTTP library, or write my own. I've been working on a project that attempts to provide a simpler, more feature-full REST API foundation. It contains an HTTP wrapper library that will be used by Aphiria libraries going forward. I wrote it in an attempt to improve on the short-comings of PSR-7, while introducing expanded functionality, eg content negotiation, header parsing and formatting, and a few other things.

from opulence.

peteraba avatar peteraba commented on August 13, 2024

Sounds interesting and well thought out. I can't really argue with it pro or contra, nor is it a great pain to do the conversion.

What is your take on Oauth2 though? Are you going to provide an easy way to implement that or any other access delegation layers? If it's an API oriented framework, I'm sure you have something.

from opulence.

davidbyoung avatar davidbyoung commented on August 13, 2024

A few years ago, I set out to implement a full OAuth 2.0 solution for authorization, which brought up having to do something like OpenID Connect for authentication. I becand disillusioned with the over complexity with implementing the entire spec, which is especially difficult to support without forcing some sort of front end implementation on developers. Even the original author of OAuth dropped out of the project because he felt it had become much too complicated to be implemented properly except for by "Enterprise" clients.

I'm hesitant to release my home grown solution for authentication and authorization only because I take on the responsibility for ensuring it is 100% secure, which is very difficult for a bespoke solution.

I do wish OAuth were simpler to implement in its entirety. If a better thing came around, I'd jump on implementing that.

from opulence.

peteraba avatar peteraba commented on August 13, 2024

Well, I don't really have a problem at the moment so I will close this issue. However I expect that if my CMS or any other Opulence projects ever picks up traction, it will come up again, likely more pressing.

from opulence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.