Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
#70 add oauth2 example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Oct 27, 2020
1 parent 14cdc41 commit 605cbb5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions admin/admin-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,40 @@ session {
}
```

#### OAUTH2 Example

```
oauth2 {
name: oauth2
clientId: "client-id"
clientSecret: "client-secret"
redirectUri: "http://localhost:9112/api/ssoLogin"
responseType: code
grantType: "authorization_code"
authorizationUrl: "https://github.com/login/oauth/authorize"
authorizationHeader: "token"
tokenUrl: "https://github.com/login/oauth/access_token"
userUrl: "https://api.github.com/user"
scope: ["user"]
}
sso {
autocreate: false
autoupdate: false
mapper: "simple"
attributes {
login: "login"
name: "name"
roles: "role"
}
defaultRoles: ["read", "analyze"]
defaultOrganization: "demo"
}
```


### Cache
#### Performance
In order to increase Cortex performance, a cache is configured to prevent
Expand Down
2 changes: 1 addition & 1 deletion installation/install-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
⚠️ _**Please read carrefully this documentation. Depending on you make a fresh installation or update an existing version, repository or packages names may vary.**_

Current supported versions of Cortex are:
- Version 3.1.0 and later that supports **only** Elasticsearch 7.x.
- Version 3.1.0 and later that supports **only** Elasticsearch 7.x.

Instruction to install Cortex supporting Elasticsearch 6.x (EoL in Nov. 2020) are still detailled in this documentation.

Expand Down

0 comments on commit 605cbb5

Please sign in to comment.