summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
author谈笑风生间 <makonike@anyview.fun>2023-05-27 02:16:48 +0800
committerGitHub <noreply@github.com>2023-05-26 14:16:48 -0400
commitd6cbf7f3156c55c89b69427b0247c8fd1fcab070 (patch)
tree823d6fb41f1ff44215a22f859db09ba17b5f854e /docs/content
parentabccb86b36d8c9e680768fcff0c0dc05f1cd9447 (diff)
downloadgitea-d6cbf7f3156c55c89b69427b0247c8fd1fcab070.tar.gz
gitea-d6cbf7f3156c55c89b69427b0247c8fd1fcab070.zip
docs: remove an extraneous whitespace (#24949)
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/doc/development/oauth2-provider.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/doc/development/oauth2-provider.en-us.md b/docs/content/doc/development/oauth2-provider.en-us.md
index b279e97a6e..cf045ac2fe 100644
--- a/docs/content/doc/development/oauth2-provider.en-us.md
+++ b/docs/content/doc/development/oauth2-provider.en-us.md
@@ -94,7 +94,7 @@ For public clients, a redirect URI of a loopback IP address such as `http://127.
1. Redirect to user to the authorization endpoint in order to get their consent for accessing the resources:
```curl
- https://[YOUR-GITEA-URL]/login/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI& response_type=code&state=STATE
+ https://[YOUR-GITEA-URL]/login/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=code&state=STATE
```
The `CLIENT_ID` can be obtained by registering an application in the settings. The `STATE` is a random string that will be send back to your application after the user authorizes. The `state` parameter is optional but should be used to prevent CSRF attacks.