Skip to content

Commit

Permalink
solution-navbar: Implement OIDC token negociation
Browse files Browse the repository at this point in the history
Refs: #2022, #2527
  • Loading branch information
JBWatenbergScality committed Feb 12, 2021
1 parent 2b78ff4 commit f2af053
Show file tree
Hide file tree
Showing 12 changed files with 7,122 additions and 13,345 deletions.
2 changes: 1 addition & 1 deletion solutions-ui-navbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $ npm run build
- client-id : string, required

- redirect-url : string, customized redirect uri
- options : {[url: string]: {en: string, fr: string}} -- eg : {"/": {en: "Overview", fr: "Vue generale"}, "/platform": {en: "Platform", fr: "Infrastructure"}, ...} - by default we display the full navbar in static mode, this attribute can be used if we want to extends the menu in a specific context
- options : {[url: string]: {en: string, fr: string, roles: string[]}} -- eg : {"/": {en: "Overview", fr: "Vue generale", roles: ["admin"]}, "/platform": {en: "Platform", fr: "Infrastructure"}, ...} - by default we display the full navbar in static mode, this attribute can be used if we want to extends the menu in a specific context

## Methods

Expand Down
16 changes: 16 additions & 0 deletions solutions-ui-navbar/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
if (process.env.NODE_ENV === "test") {
module.exports = {
"presets": ["@babel/preset-env", "@babel/preset-flow", ["@babel/preset-react", {
"runtime": "automatic"
}]],
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}
} else {
module.exports = {
"presets": ["@babel/preset-env", "@babel/preset-flow", ["@babel/preset-react", {
"runtime": "automatic"
}]]
}

}

5 changes: 0 additions & 5 deletions solutions-ui-navbar/babel.config.json

This file was deleted.

3 changes: 3 additions & 0 deletions solutions-ui-navbar/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"transformIgnorePatterns": ["/node_modules/(?!react-to-webcomponent)"]
}
Loading

0 comments on commit f2af053

Please sign in to comment.