Skip to content

Commit

Permalink
Make UiService publicly accessible
Browse files Browse the repository at this point in the history
When auth is enabled, accessing login page ended up with 403 instead of showing
login page.
Since new UI is a single page application, angular handles whether to show the
contents or login page.
To show login page, UiService needs to be publicly accessible.

Change-Id: If9e0ba41c2fac11b67b4fa76aa1f3e483d65366f
  • Loading branch information
ttddyy authored and Gerrit Code Review committed Oct 4, 2016
1 parent b589450 commit d3cf067
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xenon-ui/src/main/java/com/vmware/xenon/ui/UiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@

package com.vmware.xenon.ui;

import com.vmware.xenon.common.Operation;
import com.vmware.xenon.services.common.ServiceUriPaths;
import com.vmware.xenon.services.common.UiContentService;

public class UiService extends UiContentService {
public static final String SELF_LINK = ServiceUriPaths.UI_SERVICE_CORE_PATH;

@Override
public void authorizeRequest(Operation op) {
// default UI is a single page app and should be publicly accessible.
op.complete();
}
}

0 comments on commit d3cf067

Please sign in to comment.