Skip to content

Commit

Permalink
update README.md in web ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidonos committed Sep 30, 2024
1 parent 8eb1ab1 commit df3b83d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions sechub-webui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ To start the application locally use the `webui_local` profile.

This will include the following profiles:

- `webui_localserver`
- `webui_mocked` (only if you don't want to talk to the actual SecHub server)
- `ssl-cert-provided`: a default ssl certificate will be used by the WebUI server
- `basic-auth-mocked`: mock the SecHub Server & enable login with preconfigured credentials at `/login/classic`)
- `local`: includes any local configurations matching `application-local.${USER}.yml`

If you want to provide local configurations, create a file named `application-local.${USER}.yml` in the `src/main/resources` directory.
Make sure that the ${USER} part matches your system username.

This will enable configurations suitable for local development and testing.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Except
.sessionCreationPolicy(SessionCreationPolicy.IF_REQUIRED));

if (environment.matchesProfiles(ApplicationProfiles.OAUTH2_ENABLED)) {
MercedesBenzOAuth2AccessTokenClient mercedesBenzOAuth2AccessTokenClient = new MercedesBenzOAuth2AccessTokenClient(new RestTemplate());
RestTemplate restTemplate = new RestTemplate();
MercedesBenzOAuth2AccessTokenClient mercedesBenzOAuth2AccessTokenClient = new MercedesBenzOAuth2AccessTokenClient(restTemplate);
/* Enable OAuth2 */
httpSecurity.oauth2Login(oauth2 -> oauth2
.loginPage(RequestConstants.LOGIN_OAUTH2)
Expand Down

0 comments on commit df3b83d

Please sign in to comment.