*: add a mock connector which takes a username and password for testing

Since we don't have a good strategy which takes a username and password
add a mock connector which implementes PasswordConnector so we can
develop the frontend screens.
This commit is contained in:
Eric Chiang
2016-08-25 13:00:53 -07:00
parent 144fa41a23
commit 68746fd795
3 changed files with 69 additions and 34 deletions

View File

@@ -7,25 +7,15 @@ web:
http: 127.0.0.1:5556
connectors:
- type: mock
id: mock
- type: mockCallback
id: mock-callback
name: Mock
- type: github
id: github
name: GitHub
- type: mockPassword
id: mock-password
name: Password
config:
clientID: "$GITHUB_CLIENT_ID"
clientSecret: "$GITHUB_CLIENT_SECRET"
redirectURI: http://127.0.0.1:5556/callback/github
org: kubernetes
- type: oidc
id: google
name: Google Account
config:
issuer: https://accounts.google.com
clientID: "$GOOGLE_OAUTH2_CLIENT_ID"
clientSecret: "$GOOGLE_OAUTH2_CLIENT_SECRET"
redirectURI: http://127.0.0.1:5556/callback/google
username: "admin"
password: "PASSWORD"
staticClients:
- id: example-app