OAuth2: Allow normal users to create clients (but unapproved)

This commit is contained in:
rubenwardy
2023-10-31 20:29:49 +00:00
parent fa389273ab
commit 047bf936b4
3 changed files with 8 additions and 15 deletions

View File

@@ -1,19 +1,22 @@
title: OAuth2 API
<p class="alert alert-warning">
The OAuth2 applications API is currently experimental and invite only.
The OAuth2 applications API is currently experimental, and may break without notice.
</p>
ContentDB allows you to create an OAuth2 Application and obtain access tokens
for users.
## Scopes
OAuth2 applications can currently only access public user data, using the whoami API.
## Create an OAuth2 Client
Go to Settings > [OAuth2 Applications](/user/apps/) > Create
Note: If you don't see this then you don't have access to OAuth2 yet.
## Obtaining access tokens
@@ -97,8 +100,3 @@ Next, you should check the access token works by getting the user information:
curl https://content.minetest.net/api/whoami/ \
-H "Authorization: Bearer YOURTOKEN"
```
## Scopes
OAuth2 applications can currently only access public user data, using the whoami API.