-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4920 from cloudforet-io/feature-mfa-ms-authenticator
feat: apply mfa (ms authenticator)
- Loading branch information
Showing
55 changed files
with
2,728 additions
and
1,255 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
71 changes: 0 additions & 71 deletions
71
apps/web/src/common/modules/button/verify-button/VerifyButton.vue
This file was deleted.
Oops, something went wrong.
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
4 changes: 3 additions & 1 deletion
4
apps/web/src/schema/identity/user-profile/api-verbs/enable-mfa.ts
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import type { MultiFactorAuthType } from '@/schema/identity/user-profile/type'; | ||
|
||
export interface UserProfileEnableMfaParameters { | ||
mfa_type: string; | ||
mfa_type: MultiFactorAuthType; | ||
options: Record<string, any>; | ||
} |
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,4 @@ | ||
export const MULTI_FACTOR_AUTH_TYPE = { | ||
OTP: 'OTP', | ||
EMAIL: 'EMAIL', | ||
} as const; |
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,3 @@ | ||
import type { MULTI_FACTOR_AUTH_TYPE } from '@/schema/identity/user-profile/constant'; | ||
|
||
export type MultiFactorAuthType = typeof MULTI_FACTOR_AUTH_TYPE[keyof typeof MULTI_FACTOR_AUTH_TYPE]; |
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
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
File renamed without changes.
83 changes: 83 additions & 0 deletions
83
apps/web/src/services/auth/components/CollapsibleContentsOTP.vue
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,83 @@ | ||
<script setup lang="ts"> | ||
import { PLink, PDataLoader } from '@cloudforet/mirinae'; | ||
interface Props { | ||
loading: boolean | ||
} | ||
const props = withDefaults(defineProps<Props>(), { | ||
loading: false, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<p-data-loader class="collapsible-contents-wrapper" | ||
:loading="props.loading" | ||
> | ||
<div class="contents-item"> | ||
<p class="title"> | ||
{{ $t('AUTH.COLLAPSED.OTP_EXTENSION_TITLE_1') }} | ||
</p> | ||
<ul class="list"> | ||
<li>{{ $t('AUTH.COLLAPSED.OTP_EXTENSION_REASON_1') }}</li> | ||
<li>{{ $t('AUTH.COLLAPSED.OTP_EXTENSION_REASON_2') }}</li> | ||
</ul> | ||
</div> | ||
<div class="contents-item"> | ||
<p class="title"> | ||
{{ $t('AUTH.COLLAPSED.OTP_EXTENSION_TITLE_2') }} | ||
</p> | ||
<p> | ||
<i18n path="AUTH.COLLAPSED.OTP_EXTENSION_DESC_1"> | ||
<template #guide> | ||
<p-link href="https://support.microsoft.com/en-us/account-billing/about-microsoft-authenticator-9783c865-0308-42fb-a519-8cf666fe0acc" | ||
new-tab | ||
:text="$t('AUTH.COLLAPSED.GOOGLE_GUIDE')" | ||
highlight | ||
/> | ||
</template> | ||
<template #contact> | ||
<span class="contact-help-text"> | ||
{{ $t('AUTH.COLLAPSED.EXTENSION_CONTACT') }} | ||
</span> | ||
</template> | ||
</i18n> | ||
</p> | ||
</div> | ||
</p-data-loader> | ||
</template> | ||
|
||
<style lang="postcss" scoped> | ||
.collapsible-contents-wrapper { | ||
@apply text-paragraph-sm; | ||
max-width: 23rem; | ||
.contents-item { | ||
.title { | ||
@apply font-bold; | ||
} | ||
.contact-help-text { | ||
@apply text-violet-600; | ||
} | ||
li { | ||
@apply relative; | ||
padding-left: 1.25rem; | ||
&::before { | ||
@apply absolute; | ||
content: '·'; | ||
top: 0; | ||
left: 0.5rem; | ||
} | ||
.re-send-button { | ||
@apply inline-block text-paragraph-sm text-blue-700; | ||
padding: 0; | ||
} | ||
} | ||
& + .contents-item { | ||
margin-top: 1.625rem; | ||
} | ||
a { | ||
@apply text-blue-700; | ||
} | ||
} | ||
} | ||
</style> |
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
Oops, something went wrong.