Skip to content

Commit

Permalink
feat: added authconfig to apex browser
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Nov 5, 2024
1 parent 26f8260 commit 050fb02
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
58 changes: 58 additions & 0 deletions themes/apex/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
module.exports = {
catalogUrl: null,
catalogTitle: "STAC Browser",
allowExternalAccess: true, // Must be true if catalogUrl is not given
allowedDomains: [],
detectLocaleFromBrowser: true,
storeLocale: true,
locale: "en",
fallbackLocale: "en",
supportedLocales: [
"de",
// "de-CH",
"es",
"en",
// "en-GB",
// "en-US",
"fr",
// "fr-CA",
// "fr-CH",
"it",
// "it-CH",
"ro",
"ja",
"pt",
// "pt-BR"
],
apiCatalogPriority: null,
useTileLayerAsFallback: true,
displayGeoTiffByDefault: false,
buildTileUrlTemplate: ({
href,
asset
}) => "https://tiles.rdnt.io/tiles/{z}/{x}/{y}@2x?url=" + encodeURIComponent(asset.href.startsWith("/vsi") ? asset.href : href),
stacProxyUrl: null,
pathPrefix: "/",
historyMode: "history",
cardViewMode: "cards",
cardViewSort: "asc",
showKeywordsInItemCards: false,
showKeywordsInCatalogCards: false,
showThumbnailsAsAssets: false,
geoTiffResolution: 128,
redirectLegacyUrls: false,
itemsPerPage: 12,
defaultThumbnailSize: null,
maxPreviewsOnMap: 50,
crossOriginMedia: null,
requestHeaders: {},
requestQueryParameters: {},
preprocessSTAC: null,
authConfig: {
type: 'openIdConnect',
openIdConnectUrl: 'https://auth.apex.esa.int/realms/apex/.well-known/openid-configuration',
oidcConfig: {
client_id: 'apex-catalogue-dev-browser'
}
}
};
2 changes: 1 addition & 1 deletion themes/apex/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.9
1.3.0

0 comments on commit 050fb02

Please sign in to comment.