auth icon indicating copy to clipboard operation
auth copied to clipboard

Categorise authenticated people?

Open SimonLab opened this issue 5 years ago • 3 comments

The application is used for user to

  • manage api keys which allow people to create application using the dwyl API
  • authenticate with auth and recieve a jwt to access private endpoint on various applications

At the moment there is not difference between this two types of user. This means that a user which has already been authenticated can access the api key management pas on auth later on.

Are there any cases where we want to limit the api keys page to certain users only?

SimonLab avatar May 12 '20 15:05 SimonLab

@SimonLab from the perspective of our "Main" App https://github.com/dwyl/auth_plug_example The people using the Auth Service will just get redirected back to the Main App transparently once they have authenticated. Even when they click the "Verify" link sent to their email, they will be redirected back to the Main App. The reason I've made the API Keys part of the Auth Service now is that I want our "Main" App to be deployed the exact same way that anyone else would run the "Main" App. For now, a person using the Main App will not even be aware of the concept of API Keys, until we write our tutorial (Blog Post) explaining how to use our API. But that's at least 2 months from now. We are just laying the "ground work" now for that eventuality.

nelsonic avatar May 12 '20 18:05 nelsonic

To answer the specific questions you have raised above:

  1. There is no difference between the types of ~~user~~ person because we don't want there to be a difference. We want anyone to be able to create their own AUTH_API_KEY and get the @dwyl App running on their localhost (or even deploy it to their own VPS!) in less than 2 minutes. We want the setup to be even easier than Wordpress. That's how we will succeed.

  2. Limit API Keys? At this stage, No. during MVP we have no need for limits. What we do want to do is work on Logging ASAP: #67 And then extend that to logging all API requests so that we can monitor usage. https://github.com/dwyl/app/issues/274

nelsonic avatar May 13 '20 16:05 nelsonic

Related to: https://github.com/dwyl/auth/issues/117

nelsonic avatar Sep 15 '20 10:09 nelsonic