-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
212 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ These sections show how to use the SDK to perform API management functions. Befo | |
8. [Manage Flows](#manage-flows) | ||
9. [Manage JWTs](#manage-jwts) | ||
10. [Impersonate](#impersonate) | ||
11. [Search Audit](#search-audit) | ||
11. [Audit](#audit) | ||
12. [Embedded Links](#embedded-links) | ||
13. [Manage ReBAC Authz](#manage-rebac-authz) | ||
14. [Manage Project](#manage-project) | ||
|
@@ -1201,7 +1201,7 @@ if err != nil { | |
token, err := descopeClient.Management.User().GenerateEmbeddedLink(context.Background(), "[email protected]", map[string]any{"key1":"value1"}) | ||
``` | ||
|
||
### Search Audit | ||
### Audit | ||
|
||
You can perform an audit search for either specific values or full-text across the fields. Audit search is limited to the last 30 days. | ||
|
||
|
@@ -1219,6 +1219,19 @@ if err == nil { | |
} | ||
``` | ||
|
||
You can also create audit event with data | ||
|
||
```go | ||
err := descopeClient.Management.Audit().CreateEvent(context.Background(), &descope.AuditCreateOptions{ | ||
UserID: <user-id>, | ||
Action: <action>, | ||
Type: <action>, | ||
ActorID: <actor-id>, | ||
Data: <data>, | ||
TenantID: <tenant-id>, | ||
}) | ||
``` | ||
|
||
### Manage ReBAC Authz | ||
|
||
Descope supports full relation based access control (ReBAC) using a zanzibar like schema and operations. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters