Skip to content
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

Add access control for public endpoints (Web and Installed Application) #4179

Closed
sebgie opened this issue Sep 26, 2014 · 1 comment
Closed
Labels
affects:api Affects the Ghost API

Comments

@sebgie
Copy link
Contributor

sebgie commented Sep 26, 2014

This belongs to the OAuth Epic: #4004 - please read this for the big picture of what this issue is for :)


Requires #4174

This issue deals with ensuring that only allowed web and installed clients are able to access the Ghost API. The goal is to give the operator of a blog the chance to deny access for clients that are not approved. If the client authentication as described in RFC 6749 2.3 succeeds, only access to public API endpoints is granted. Since the same mechanism is used for installed applications it is not guaranteed that the client can keep secrets and therefore no additional permissions are granted.

Client Authentication can be done using two methods:

  • Basic Auth Header:
    • Header: Authorization: Basic base64(client_id:client_secret)
    • Use Passport.js to implement the functionality. (Example)
  • Request body:
@sebgie sebgie added affects:api Affects the Ghost API OAuth labels Sep 26, 2014
@sebgie sebgie added this to the Future Backlog milestone Sep 26, 2014
@ErisDS ErisDS modified the milestone: Future Backlog Oct 9, 2015
@ErisDS ErisDS added the later [triage] Things we intend to work but are not immediate priority label Sep 20, 2016
@ErisDS
Copy link
Member

ErisDS commented Sep 20, 2016

I'm closing all OAuth and most API issues temporarily with the later label.

RE: OAuth, for the next 2-3 months we'll be implementing an official Ghost OAuth login system, providing global access to all Ghost blogs with a single login. We'll be opening issues around this system soon, and I don't want to cause confusion with OAuth for the API.

JSON API Overhaul & OAuth access are currently scheduled next on the roadmap

@ErisDS ErisDS closed this as completed Sep 20, 2016
@ErisDS ErisDS removed later [triage] Things we intend to work but are not immediate priority labels Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:api Affects the Ghost API
Projects
None yet
Development

No branches or pull requests

2 participants