Closed htdvisser closed 1 year ago
This would be very helpful! Thank you in advance :)
I was just searching something like this, I didn't know even that some CLI command exist yet for OAuth clients registration. I will try with the CLI but would be really helpful to know what's the best approach 👍
Blocked on OAuth client management in the Console: #4300
Still blocked on #4300, which was pushed to the 2022 Conference milestone, so this will also have to wait a little longer.
It looks like @ryaplots didn't manage to address #4300 yet, so since this issue is blocked on that one, we also push it to 2022 Q2.
Since this is now implemented in the Console, here are some starting points for the documentation:
/oauth/oauth-clients
on the IS cluster (TTS CE: https://eu1.cloud.thethings.network/oauth/oauth-clients)When you register an OAuth client, you should keep in mind that it will have to be approved by an admin. The scope and duration of the review process depends on the network where you register your OAuth client. If you register it in your own tenant on The Things Stack Cloud, then the administrator (probably you) can approve it right away. If you register an OAuth client on The Things Stack Community Edition, the administrators will take some more time to review if and how the OAuth client benefits the community. Now that the first requests are coming in, we have started working on defining the review guidelines. Some things that the admins look at are:
Once the OAuth client registration is approved (or once issue 49 is implemented) you can start using the OAuth client with the following settings:
/oauth/authorize
on the IS cluster (TTS CE: https://eu1.cloud.thethings.network/oauth/authorize)/oauth/token
on the IS cluster (TTS CE: https://eu1.cloud.thethings.network/oauth/token)When working with multi-tenant deployments, things get a bit more complicated, but I think this is a good start.
Bumping back to triage for re-assignment and planning.
cc: @NicolasMrad
@nejraselimovic can you handle this?
@nejraselimovic can you handle this?
Not sure if I understand these concepts completely, but if it's not urgent you can assign it to me and I'll do a bit research and look into it.
This is moved to the docs repo; https://github.com/TheThingsNetwork/lorawan-stack/issues/1784
Summary
It would be good to write some documentation for registering (and working with) OAuth clients.
Why do we need this ?
To help users integrate The Things Stack with their applications.
What is already there? What do you see now?
ttn-lw-cli
commands to manage OAuth clientsWhat is missing? What do you want to see?
Documentation for how to register, what scopes to ask for, maybe an example OAuth flow.
Can you do this yourself and submit a Pull Request?
Yes