Skip to content

Commit

Permalink
docs: Add docs for the new feature of accessKey and secretKey
Browse files Browse the repository at this point in the history
  • Loading branch information
dacongda committed Aug 18, 2024
1 parent 5332e4e commit 4990d5b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/user/api-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Api Key
description: Access api with api key
keywords: [user, api key, accessKey, accessSecret]
authors: [DacongDA]
---

## Access api with api key

You can access casdoor api with accessKey and accessSecret of user.

1. Create a pair of accessKey and accessSecret in account setting page.
2. Put accessKey and accessSercet in into the http query param.

## Example

![User Api Key](/img/user/user_api_key.png)

```bash
curl --location 'http://door.casdoor.com/api/user?accessKey=b86db9dc-6bd7-4997-935c-af480dd2c796&accessSecret=79911517-fc36-4093-b115-65a9741f6b14'
```
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ module.exports = {
"user/multi-factor-authentication",
"user/roles",
"user/permissions",
"user/api-key",
],
},
{
Expand Down
Binary file added static/img/user/user_api_key.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4990d5b

Please sign in to comment.