influxdata / influxdata/influxdata-docker
GitLab oauth requires Google settings
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 364
- Forks
- 255
- Avg merge
- 3h 18m
- Merged PRs (30d)
- 7
Description
I set up gitlab oauth this way:
```
- name: TOKEN_SECRET
value: "MY_GENERATED_TOKEN"
- name: GENERIC_NAME
value: "gitlab"
- name: GENERIC_CLIENT_ID
value: "MY_GITLAB_CLIENT_ID"
- name: GENERIC_CLIENT_SECRET
value: "MY_GITLAB_CLIENT_SECRET"
- name: GENERIC_AUTH_URL
value: "https://gitlab.FOOBAR.com/oauth/authorize"
- name: GENERIC_TOKEN_URL
value: "https://gitlab.FOOBAR.com/oauth/token"
- name: GENERIC_SCOPES
value: "api,openid,read_user"
- name: PUBLIC_URL
value: "https://chronograf.FOOBAR.com"
- name: GENERIC_API_URL
value: "https://gitlab.FOOBAR.com/api/v3/user"
```
when container started i see error in logs:
```
time="2020-06-01T14:41:01Z" level=error msg="Failed to validate Oauth settings: missing Google oauth setting[s]: client id, client secret" basepath=invalid component=server
```
If i add this two envs (GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET) with fake values, then chronograf started successfully and i see login screen with two buttons - google and gitlab
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the container startup with the listed GENERIC_* GitLab OAuth variables and inspect the validation path that emits “missing Google oauth setting[s]”. Confirm that GitLab-only configuration starts without fake GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET values, while preserving the intended Google login behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, gitlab
- Domain
- authentication, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100