Skip to content

Commit

Permalink
fix: Fixed #<18>:Update the Go SDK and its parameters (#20)
Browse files Browse the repository at this point in the history
* Update the Go SDK document

* Update the Go SDK document
  • Loading branch information
qimeila authored Apr 1, 2022
1 parent 6c02fdf commit 9380c8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Casdoor SDK is very simple to use. We will show you the steps below.
## Step1. Init Config

Initialization requires 5 parameters, which are all string type:
Initialization requires 6 parameters, which are all string type:

| Name (in order) | Must | Description |
| ---------------- | ---- | --------------------------------------------------- |
Expand All @@ -17,9 +17,10 @@ Initialization requires 5 parameters, which are all string type:
| clientSecret | Yes | Application.client_secret |
| jwtSecret | Yes | Same as Casdoor JWT secret. |
| organizationName | Yes | Application.organization |
| applicationName | Yes | Application.applicationName |

```go
func InitConfig(endpoint string, clientId string, clientSecret string, jwtSecret string, organizationName string)
func InitConfig(endpoint string, clientId string, clientSecret string, jwtPublicKey string, organizationName string, applicationName string)
```

## Step2. Get token and parse
Expand Down

0 comments on commit 9380c8e

Please sign in to comment.