Skip to content

Commit

Permalink
feat(auth): add default value for github api and update doc (#1779)
Browse files Browse the repository at this point in the history
Fix #1775
  • Loading branch information
AlexisSouquiere authored May 21, 2024
1 parent e5458e9 commit f9968fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/docs/configuration/authentifications/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ micronaut:
auth-method: client-secret-post
```
You can also override the GitHub API url if needed. Default value is https://api.github.com
```yaml
github.api.url: https://override.api.github.com
```
To further tell AKHQ to display GitHub SSO options on the login page and customize claim mapping, configure Oauth in the AKHQ config:
```yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@Header(name = "User-Agent", value = "Micronaut")
@Header(name = "Accept", value = "application/vnd.github.v3+json, application/json")
@Client("${github.api.url}")
@Client("${github.api.url:`https://api.github.com`}")
public interface GithubApiClient {

@Get("/user")
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ micronaut:
http:
client:
allow-block-event-loop: true
github.api.url: https://api.github.com


jackson:
serialization:
Expand Down

0 comments on commit f9968fc

Please sign in to comment.