1.0.0 • Published 2 years ago
@authing/mfa-component-vue2 v1.0.0
Authing MFA core features
- Authoring ensures business security through various authentication methods (SMS authentication/email authentication/OTP authentication/face recognition authentication).
- Support multi-source behavioral environment data reporting and multi-dimensional analysis of security levels.
- Support visual orchestration of security policies to achieve environmental risk adaptation.
- Advanced continuous adaptive mode is provided to achieve multifactor authentication protection in more scenarios (such as resource access scenarios).
- Provide SDK and open interfaces to help developers quickly invoke relevant capabilities.
Install
npm install --save @authing/mfa-component-vue2Initialize
| Key | Type | Default | Requires |
|---|---|---|---|
| appId | String | - | Y |
| host | String | - | N |
| style | CSSProperties | - | N |
// From CDN
const guard = new AuthingMFAFactory.AuthingMFA({
appId: 'AUTHING_APP_ID'
})
// From npm
import { AuthingMFAPlugin } from '@authing/mfa-component-vue2'
import '@authing/mfa-component-vue2/dist/index.min.css'
Vue.use(AuthingMFAPlugin, {
appId: 'AUTHING_APP_ID'
})// use Authing MFA APIs in Components
<script>
export default {
data () {
return {}
},
mounted() {
this.$authingMFA.start({
el: document.querySelector('#authing-mfa-container'),
mfaTriggerData: {}
})
this.$authingMFA.on('load', function () {
console.log('Authing MFA load')
})
this.$authingMFA.on('mount', function () {
console.log('Authing MFA mount: ', document.querySelector('.authing-mfa-content'))
})
this.$authingMFA.on('unmount', function () {
console.log('Authing MFA unmount')
})
this.$authingMFA.on('success', function (code, data) {
console.log('Authing MFA success: ', code, data)
})
this.$authingMFA.on('fail', function (message) {
console.log('Authing MFA fail: ', message)
})
}
}
</script>1.0.0
2 years ago
1.0.0-alpha.16
3 years ago
1.0.0-alpha.15
3 years ago
1.0.0-alpha.14
3 years ago
1.0.0-alpha.13
3 years ago
1.0.0-alpha.12
3 years ago
1.0.0-alpha.11
3 years ago
1.0.0-alpha.10
3 years ago
1.0.0-alpha.9
3 years ago
1.0.0-alpha.8
3 years ago
1.0.0-alpha.7
3 years ago
1.0.0-alpha.6
3 years ago
1.0.0-alpha.5
3 years ago
1.0.0-alpha.4
3 years ago
1.0.0-alpha.2
3 years ago
1.0.0-alpha.1
3 years ago
1.0.0-alpha.0
3 years ago