22
22
sample data loaded.)
23
23
1 . Run ` bin/rails server `
24
24
25
- ## Configuring local auth
25
+ ## Configuring auth
26
26
27
27
The Client ID and Secret should be used instead of ` [REDACTED] ` . Please don't
28
28
save the Client ID or Client Secret anywhere online or locally other than in the
29
29
` .env ` file.
30
30
31
+ Client IDs and secrets are set up in the developer tooling for each service.
32
+
31
33
### Google
32
34
33
35
1 . Go to [ Google Cloud Console] ( https://console.cloud.google.com/ )
34
36
2 . Go to "APIs & Services" -> "Credentials"
35
- 3 . Click on the AsyncGo OAuth client
36
- 4 . Copy the Client ID and Client Secret
37
- 5 . Open the ` .env ` file in the root of your local copy of the project
38
- 6 . Enter the Client ID as the ` GOOGLE_CLIENT_ID `
39
- 7 . Enter the Client Secret as the ` GOOGLE_CLIENT_SECRET `
37
+ 3 . Copy or create the Client ID and Client Secret
38
+ 4 . Open the ` .env ` file in the root of your local copy of the project
39
+ 5 . Enter the Client ID as the ` GOOGLE_CLIENT_ID `
40
+ 6 . Enter the Client Secret as the ` GOOGLE_CLIENT_SECRET `
40
41
41
42
Here's what a ` .env ` file looks like
42
43
@@ -45,19 +46,15 @@ GOOGLE_CLIENT_ID=[REDACTED]
45
46
GOOGLE_CLIENT_SECRET=[REDACTED]
46
47
```
47
48
48
- You need to be a member of the AsyncGo Google Cloud project to be able to access
49
- this.
50
-
51
49
### GitHub
52
50
53
51
1 . Go to
54
52
[ GitHub Application] ( https://github.com/organizations/async-go/settings/applications )
55
- 2 . Click on the AsyncGo OAuth app
56
- 3 . Copy the Client ID
57
- 4 . Obtain the Client Secret
58
- 5 . Open the ` .env ` file in the root of your local copy of the project
59
- 6 . Enter the Client ID as the ` GITHUB_CLIENT_ID `
60
- 7 . Enter the Client Secret as the ` GITHUB_CLIENT_SECRET `
53
+ 2 . Copy or create a Client ID
54
+ 3 . Obtain the Client Secret
55
+ 4 . Open the ` .env ` file in the root of your local copy of the project
56
+ 5 . Enter the Client ID as the ` GITHUB_CLIENT_ID `
57
+ 6 . Enter the Client Secret as the ` GITHUB_CLIENT_SECRET `
61
58
62
59
Here's what a ` .env ` file looks like
63
60
@@ -73,7 +70,7 @@ GITHUB_CLIENT_SECRET=[REDACTED]
73
70
## Blazer authentication
74
71
75
72
Blazer uses hard-coded user authentication. It checks if the user email ends
76
- with ` @asyncgo.com ` .
73
+ with ` @asyncgo.com ` , but you can change this to meet your needs .
77
74
78
75
## Container builds
79
76
0 commit comments