-
+
diff --git a/src/header/HeaderBAM.js b/src/header/HeaderAuthentication.js
similarity index 71%
rename from src/header/HeaderBAM.js
rename to src/header/HeaderAuthentication.js
index 9a83139..6141803 100644
--- a/src/header/HeaderBAM.js
+++ b/src/header/HeaderAuthentication.js
@@ -23,35 +23,37 @@ import PropTypes from 'prop-types';
import usePlatformData from '../hooks/usePlatformData';
import { SvgIcon } from '@bluecateng/pelagos';
import { faLink } from '@fortawesome/free-solid-svg-icons';
-import './HeaderBAM.less';
+import './HeaderAuthentication.less';
/**
- * HeaderBAM component displays the connected BAM alias and URL.
+ * HeaderAuthentication component displays the connected Authentication
+ * service alias and URL.
* This component is intended to be nested inside the PlatformDataContext
* as it will require access to PlatformData.
*/
-const HeaderBAM = ({ className }) => {
+const HeaderAuthentication = ({ className }) => {
const { data } = usePlatformData();
- const bamAlias = data?.user?.bam_info?.alias;
- const bamLink = data?.user?.bam_info?.url;
+ const authenticationAlias = data?.user?.authentication_info?.alias;
+ const authenticationLink = data?.user?.authentication_info?.url;
+ const authenticationService = data?.user?.authentication_info?.service;
return (
<>
- {bamAlias ? (
+ {authenticationAlias ? (
@@ -60,9 +62,9 @@ const HeaderBAM = ({ className }) => {
);
};
-HeaderBAM.propTypes = {
+HeaderAuthentication.propTypes = {
/** The component class name(s). */
className: PropTypes.string,
};
-export default HeaderBAM;
+export default HeaderAuthentication;
diff --git a/src/header/HeaderBAM.less b/src/header/HeaderAuthentication.less
similarity index 97%
rename from src/header/HeaderBAM.less
rename to src/header/HeaderAuthentication.less
index a0dd685..af3bcb3 100644
--- a/src/header/HeaderBAM.less
+++ b/src/header/HeaderAuthentication.less
@@ -19,8 +19,8 @@
// SOFTWARE.
@import '~@bluecateng/pelagos/less/spacing';
-.HeaderBAM {
- &__bam {
+.HeaderAuthentication {
+ &__authentication {
& span {
color: var(--text-secondary);
display: flex;
diff --git a/src/header/index.js b/src/header/index.js
index 51f2a9d..ec61c91 100644
--- a/src/header/index.js
+++ b/src/header/index.js
@@ -21,7 +21,7 @@ SOFTWARE.
*/
export { default as Header } from './Header';
export { default as HeaderAccountMenu } from './HeaderAccountMenu';
-export { default as HeaderBAM } from './HeaderBAM';
+export { default as HeaderAuthentication } from './HeaderAuthentication';
export { default as HeaderHelpMenu } from './HeaderHelpMenu';
export { default as HeaderHomeNav } from './HeaderHomeNav';
export { default as HeaderLogo } from './HeaderLogo';
diff --git a/stories/HeaderBAM.stories.js b/stories/HeaderAuthentication.stories.js
similarity index 87%
rename from stories/HeaderBAM.stories.js
rename to stories/HeaderAuthentication.stories.js
index 37684cb..9b036af 100644
--- a/stories/HeaderBAM.stories.js
+++ b/stories/HeaderAuthentication.stories.js
@@ -19,14 +19,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-import HeaderBAM from '../src/header/HeaderBAM';
+import HeaderAuthentication from '../src/header/HeaderAuthentication';
import PlatformDataContext from '../src/components/PlatformDataContext';
const mockValue = {
data: {
user: {
// eslint-disable-next-line camelcase
- bam_info: {
+ authentication_info: {
alias: 'BAM-9.5.0',
url: '#',
},
@@ -35,8 +35,8 @@ const mockValue = {
};
export default {
- title: 'Components/HeaderBAM',
- component: HeaderBAM,
+ title: 'Components/HeaderAuthentication',
+ component: HeaderAuthentication,
decorators: [
(Story) => (
@@ -48,6 +48,6 @@ export default {
export const Normal = {
args: {
- className: 'TestHeaderBAM',
+ className: 'TestHeaderAuthentication',
},
};