-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into SHIBUI-660
- Loading branch information
Showing
83 changed files
with
2,873 additions
and
1,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...u/internet2/tier/shibboleth/admin/ui/configuration/InternationalizationConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.configuration; | ||
|
||
import edu.internet2.tier.shibboleth.admin.ui.i18n.MappedResourceBundleMessageSource; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.web.servlet.LocaleResolver; | ||
import org.springframework.web.servlet.i18n.SessionLocaleResolver; | ||
|
||
@Configuration | ||
public class InternationalizationConfiguration { | ||
@Bean | ||
public LocaleResolver localeResolver() { | ||
// TODO if we want to control the order, we can implement our own locale resolver instead of using the SessionLocaleResolver. | ||
SessionLocaleResolver sessionLocaleResolver = new SessionLocaleResolver(); | ||
return sessionLocaleResolver; | ||
} | ||
|
||
@Bean | ||
public MappedResourceBundleMessageSource messageSource() { | ||
MappedResourceBundleMessageSource source = new MappedResourceBundleMessageSource(); | ||
source.setBasenames("i18n/messages"); | ||
source.setUseCodeAsDefaultMessage(true); | ||
return source; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...end/src/main/java/edu/internet2/tier/shibboleth/admin/ui/configuration/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.configuration; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import springfox.documentation.builders.PathSelectors; | ||
import springfox.documentation.builders.RequestHandlerSelectors; | ||
import springfox.documentation.spi.DocumentationType; | ||
import springfox.documentation.spring.web.plugins.Docket; | ||
import springfox.documentation.swagger2.annotations.EnableSwagger2; | ||
|
||
@Configuration | ||
@EnableSwagger2 | ||
public class SwaggerConfig { | ||
|
||
@Bean | ||
public Docket api() { | ||
return new Docket(DocumentationType.SWAGGER_2) | ||
.select() | ||
.apis(RequestHandlerSelectors.any()) | ||
.paths(PathSelectors.regex("/api/.*")) | ||
.build(); | ||
} | ||
} |
111 changes: 0 additions & 111 deletions
111
.../internet2/tier/shibboleth/admin/ui/controller/DynamicHttpMetadataProviderController.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.