|
1 | 1 | Name: GitHub
|
2 | 2 | Description: Auth provider for GitHub
|
3 |
| -Metadata: envVars: OBOT_GITHUB_AUTH_PROVIDER_CLIENT_ID,OBOT_GITHUB_AUTH_PROVIDER_CLIENT_SECRET,OBOT_AUTH_PROVIDER_COOKIE_SECRET,OBOT_AUTH_PROVIDER_EMAIL_DOMAINS |
4 |
| -Metadata: optionalEnvVars: OBOT_GITHUB_AUTH_PROVIDER_TEAMS,OBOT_GITHUB_AUTH_PROVIDER_ORG,OBOT_GITHUB_AUTH_PROVIDER_REPO,OBOT_GITHUB_AUTH_PROVIDER_TOKEN,OBOT_GITHUB_AUTH_PROVIDER_ALLOW_USERS |
5 | 3 | Metadata: noUserAuth: github-auth-provider
|
6 | 4 | Credential: ../placeholder-credential as github-auth-provider
|
7 | 5 |
|
8 | 6 | #!sys.daemon ${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool
|
9 | 7 |
|
10 | 8 | ---
|
11 |
| -!metadata:*:icon |
12 |
| -https://cdn.jsdelivr.net/npm/simple-icons@v13/icons/github.svg |
| 9 | +!metadata:GitHub:providerMeta |
| 10 | +{ |
| 11 | + "icon": "https://cdn.jsdelivr.net/npm/simple-icons@v13/icons/github.svg", |
| 12 | + "link": "https://github.com/", |
| 13 | + "envVars": [ |
| 14 | + { |
| 15 | + "name": "OBOT_GITHUB_AUTH_PROVIDER_CLIENT_ID", |
| 16 | + "friendlyName": "Client ID", |
| 17 | + "description": "Client ID for your GitHub OAuth app. Can be found in GitHub Developer Settings > OAuth Apps", |
| 18 | + "sensitive": false |
| 19 | + }, |
| 20 | + { |
| 21 | + "name": "OBOT_GITHUB_AUTH_PROVIDER_CLIENT_SECRET", |
| 22 | + "friendlyName": "Client Secret", |
| 23 | + "description": "Client secret for your GitHub OAuth app. Can be found in GitHub Developer Settings > OAuth Apps", |
| 24 | + "sensitive": true |
| 25 | + }, |
| 26 | + { |
| 27 | + "name": "OBOT_AUTH_PROVIDER_COOKIE_SECRET", |
| 28 | + "friendlyName": "Cookie Secret", |
| 29 | + "description": "Secret used to encrypt cookies. Must be a random string of length 16, 24, or 32.", |
| 30 | + "sensitive": true |
| 31 | + }, |
| 32 | + { |
| 33 | + "name": "OBOT_AUTH_PROVIDER_EMAIL_DOMAINS", |
| 34 | + "friendlyName": "Allowed E-Mail Domains", |
| 35 | + "description": "Comma separated list of email domains that are allowed to authenticate with this provider. * is a special value that allows all domains.", |
| 36 | + "sensitive": false |
| 37 | + } |
| 38 | + ], |
| 39 | + "optionalEnvVars": [ |
| 40 | + { |
| 41 | + "name": "OBOT_GITHUB_AUTH_PROVIDER_TEAMS", |
| 42 | + "friendlyName": "Allowed GitHub Teams", |
| 43 | + "description": "Restrict logins to members of any of these GitHub teams (comma-separated list).", |
| 44 | + "sensitive": false |
| 45 | + }, |
| 46 | + { |
| 47 | + "name": "OBOT_GITHUB_AUTH_PROVIDER_ORG", |
| 48 | + "friendlyName": "Allowed GitHub Organization", |
| 49 | + "description": "Restrict logins to members of this GitHub organization.", |
| 50 | + "sensitive": false |
| 51 | + }, |
| 52 | + { |
| 53 | + "name": "OBOT_GITHUB_AUTH_PROVIDER_REPO", |
| 54 | + "friendlyName": "Allowed GitHub Repository", |
| 55 | + "description": "Restrict logins to collaborators on this GitHub repository (formatted orgname/repo).", |
| 56 | + "sensitive": false |
| 57 | + }, |
| 58 | + { |
| 59 | + "name": "OBOT_GITHUB_AUTH_PROVIDER_TOKEN", |
| 60 | + "friendlyName": "Repository Token", |
| 61 | + "description": "The token to use when verifying repository collaborators (must have push access to the repository).", |
| 62 | + "sensitive": true |
| 63 | + }, |
| 64 | + { |
| 65 | + "name": "OBOT_GITHUB_AUTH_PROVIDER_ALLOW_USERS", |
| 66 | + "friendlyName": "Allowed GitHub Users", |
| 67 | + "description": "Users allowed to log in, even if they do not belong to the specified org and team or collaborators.", |
| 68 | + "sensitive": false |
| 69 | + } |
| 70 | + ] |
| 71 | +} |
0 commit comments