Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

[🚀] Authentication/Authorization service for REST controllers (basic) #203

Open
MarkL4YG opened this issue Jun 21, 2020 · 0 comments · May be fixed by #209
Open

[🚀] Authentication/Authorization service for REST controllers (basic) #203

MarkL4YG opened this issue Jun 21, 2020 · 0 comments · May be fixed by #209
Labels
api Related to API changes / additions (internal API) enhancement New feature or request feedback wanted Extra discussion is needed integration Related to integration with OS & other projects (external API)

Comments

@MarkL4YG
Copy link
Member

Describe the solution you'd like
Since plugins tend to implement REST controllers to improve accessibility of functions that are already available as commands, we should provide some similar basics here too.
One of those basics would be user Authentication (As in: Does this request originate from a specific user and - if so - from who is it?) and Authorization (As is: Is the actor allowed to peform this action?)

Describe why you would like to see this implemented
As desirable as a full-blown authentication & authorization mechanism would be, we should start somewhere more basic.
The basic needs are defined by these statements:

  • A request can be associated with a IUser (or at least ISubject). [Authentication]
  • A request mapping can be gated with a permission forcing it to be only available to subject authenticated requests. [Authorization]
  • The associated optional association must be provided to endpoints in some way.
  • The Authorization header should be used for this and we should start with the non-standard Token authorization scheme. (Simple IUser -> IAuthenticationToken association)
@MarkL4YG MarkL4YG added enhancement New feature or request feedback wanted Extra discussion is needed api Related to API changes / additions (internal API) integration Related to integration with OS & other projects (external API) labels Jun 21, 2020
@MarkL4YG MarkL4YG linked a pull request Jun 27, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api Related to API changes / additions (internal API) enhancement New feature or request feedback wanted Extra discussion is needed integration Related to integration with OS & other projects (external API)
Development

Successfully merging a pull request may close this issue.

1 participant