Skip to content

Commit

Permalink
Frontend injects wsprotocols only when not using oidc authn (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
absoludity authored Oct 21, 2019
1 parent 2985f4d commit d74a768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion chart/kubeapps/templates/kubeapps-frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ spec:
- -client-id={{ required "You must fill \".Values.authProxy.clientID\" with the Client ID of the provider" .Values.authProxy.clientID }}
- -client-secret={{ required "You must fill \".Values.authProxy.clientSecret\" with the Client Secret of the provider" .Values.authProxy.clientSecret }}
- -cookie-secret={{ required "You must fill \".Values.authProxy.cookieSecret\" with a 16, 24 or 32 byte base64 encoded seed string for secure cookies" .Values.authProxy.cookieSecret }}
- -cookie-name=kc-access
- -upstream=http://localhost:8080/
- -http-address=0.0.0.0:3000
- -email-domain={{ .Values.authProxy.emailDomain }}
Expand Down
4 changes: 3 additions & 1 deletion dashboard/src/shared/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export class Auth {

public static wsProtocols() {
const token = this.getAuthToken();
if (!token) {
// If we're using OIDC for auth, then let the auth proxy handle
// injecting the ws creds.
if (!token || this.usingOIDCToken()) {
return [];
}
return [
Expand Down
1 change: 0 additions & 1 deletion docs/user/using-an-OIDC-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ spec:
- -client-secret=$AUTH_PROXY_CLIENT_SECRET
- -oidc-issuer-url=$AUTH_PROXY_DISCOVERY_URL
- -cookie-secret=$AUTH_PROXY_COOKIE_SECRET
- -cookie-name=kc-access
- -upstream=http://localhost:8080/
- -http-address=0.0.0.0:3000
- -email-domain="*"
Expand Down

0 comments on commit d74a768

Please sign in to comment.