gcushen on 0.7.1
gcushen on gh-pages
Deployed 8e9d519 with MkDocs ve… (compare)
gcushen on master
Add release notes for v0.7.1 (compare)
Hi @DummyDeck , glad to hear you like the project!
I am not familiar with Cartridge and I don't have any need for it, so I have no plans to support it. However, if you or someone else implement Cartridge integration including tests, please create a Github issue for Mezzanine API with a link to the repository, and we can discuss the possibility of merging it in etc.
Regarding API urls: sure, you can create another Django Rest Framework API router specifically for Cartridge if you want. To avoid touching
mezzanine_api/urls.py, you should be able to add an
api/cart/ route before the
api/ route in Mezzanine's
api/cart/requests will go to the
api/cart/router instead of the main
We need our server to connect to the MZN server and fetch blog posts from it.
The MZN Server and our server are on the same site, both are deployed as separate Rocket containers (our server is also Django based).
We need to establish the connectivity and authentication in a fully automatic way (no manual interventions).
In order to do that we tried the “Client Credentials” grant type in the OAuth2 method.
We managed to receive a token using the following request:
curl -X POST -H "Accept: application/json; indent=4" -d "grant_type=client_credentials" -u"<client_id>:<client_secret>" http://localhost:8000/api/oauth2/token/
We then tried to use the following API using the accepted token:
curl -H "Authorization: Bearer <your_access_token>" http://localhost:8000/api/users
And got a message indicating that the Client Credentials were not provided.
Is there anything we are missing in the client_credentials flow ?