Commit cedad0d
fix(auth): fix Auth0 integration (#164)
Because
- `instill auth login` isnt working
This commit
- missing auth0 vars
- .env for local dev
- updated go version
- aligned build system
- aligned CI
- dev and prod tenants working
- fix callback error
Ticket: https://linear.app/instill-ai/issue/INS-1660/cli-fix-auth-for-cloud-prod
### Testing
1. Create an `.env` file and fill in the secrets
```
# SECRETS
# vault / secret / devops / auth0 / prod / client-id
INSTILL_OAUTH_CLIENT_ID=
# vault / secret / devops / auth0 / prod / client-secret
INSTILL_OAUTH_CLIENT_SECRET=
# CONFIG
INSTILL_OAUTH_HOSTNAME=auth.instill.tech
INSTILL_OAUTH_ISSUER=https://auth.instill.tech/
INSTILL_OAUTH_AUDIENCE=https://api.instill.tech
INSTILL_OAUTH_CALLBACK_HOST=localhost
INSTILL_OAUTH_CALLBACK_PORT=8085
```
2. `make bin/instill`
3. `./bin/instill auth login`
### Future work
- integration tests with Auth0
- auth for Core instances
Co-authored-by: Ping-Lin Chang <[email protected]>1 parent 967e8d1 commit cedad0d
File tree
43 files changed
+345
-739
lines changed- .github
- workflows
- api
- cmd/instill
- internal
- config
- oauth2
- update
- pkg
- cmdutil
- cmd
- api
- auth/login
- export
- httpmock
- iostreams
- surveyext
- script
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+345
-739
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments