Comments (4)
Hmm, I'm not sure..
note. there is a few other problems with auth for custom repositories (see dart-lang/pub#1381).
I've started a document with API end-points offered by a pub server. If the abstractions in this repository is limiting you, I would suggest just implementing the necessary API end-point (using something like shelf_router_generator that should be pretty easy).
from pub_server.
Oh, I just saw unpub that's very impressive :)
I know @v7lin has been writing a simple pub server too.
Maybe we should maintain a list of custom pub servers somewhere..
from pub_server.
The API document is cool!
Actually the example or simple_pub_server already meet our needs except the following things:
- Only tarball and pubspec yaml file are stored currently. We want to store meta information like uploaders to do permission things
- Data stored at file system, which might not be ready for production use
So We want to do some tweak upon it to solve these two problem, as you mentioned, it is named as unpub [WIP]
Thanks for your recommendation!
I'm not sure if this issue should be closed. Feel free to close it if you wish, since this proposal may break pub-dartlang-dart
from pub_server.
@pd4d10, I'm pretty sure pub_server
doesn't check if the Accept
header is correct, and doesn't respond with Content-Type: application/vnd.pub.v2+json
. That might cause problems in the future when new API versions are introduced.
I'm not sure if we make the switch in pub_server
, we probably should. But new servers definitely could be more strict in their implementation of the REST API.
By the way please join the discussions on dart-lang/pub#1381 with your thoughts on auth for third-party pub servers (if you have any). We can't use the same Google OAuth token we use for talking to pub.dartlang.org
.
from pub_server.
Related Issues (16)
- Add a README.md HOT 2
- Expose release time through https://pub.dartlang.org/api HOT 2
- Suggestion: custom Exception type for issues that the user should be able to correct.
- Create a simple file-based server HOT 2
- pub get not finishing HOT 3
- multiple source about pub
- pub_server will crash when could not find package on pub.dartlang.org
- pub get hanging on typing issue HOT 3
- Publish to pub HOT 1
- Connection closed before full header was received HOT 3
- Local private pub-server usage problem HOT 2
- Set Content-Type application/vnd.pub.v2+json
- Pub Server Authentication For Private Pub Packages HOT 1
- Unable to push packet on pub.dartlang.org HOT 1
- After I executed "pub publish", the authorization was successful, but I always waited for timeout. May I ask why? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pub_server.