New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

baishan-iam-login

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baishan-iam-login

白山iam登录组件

latest
npmnpm
Version
3.0.5
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

白山公用 IAM 登录组件

使用说明:

在 App.jsx 中以装饰器的方式调用该验证方法

......
import {withIAMLogin} from "baishan-iam-login"

@withIAMLogin(domain(必填,项目后端域名),loadingComp(可选),config(用户其他配置,可选))
class App extends Component {
  render() {
    console.log("当前构建生效版本:1.0.3")
    return <div style={{ height: '95%' }}>
      <FrameLayout />
      <RouterConfig
        routerConfig={config}
        openAuth={true}
        authUrl={authUrl}
        sysId={3} />
    </div>
  }
}
export default App

参数文档

描述是否必填默认值数据类型
apiDomain项目后端域名,前提是已经暴露iam相关restful接口是""string
loadingComp用户自定义loading组件否undefinedReact.Component|React.FuncitonComponent
config其他配置否undefinedObject

升级日志

2021-07-07 v1.0.0

iam 登录组件初始化

todo:登出机制待完善,待 iam 提供用户 ssoid 标识

2021-07-29 v2.0.0

IAM 登录组件 mvp 版本

2021-08-01 v2.0.1

bugfix:修复了 token 过期页面重复 loading 的 bug

2021-08-01 v2.0.2

bugfix:调整 401 判断逻辑

2021-08-12 v2.0.5

bugfix:补充 token 有效性验证方法

2021-08-18 v2.0.6

对接iam的后端sdk版本 v0.9.3 前端解析json数据更新

2021-08-18 v2.0.8

补充uid的localStorage信息存储

2021-09-07 v3.0.0

使用ts+hooks的方式重写组件,并且改造发包方式(转换成es5)

2021-11-22 v3.0.1

bugfix:修复部分场景下,callback路由跳转null的bug

2021-12-08 v3.0.2

feat:补充loading样式,且支持用户传入自定义的loading组件(class组件或者func组件)

2022-06-15 v3.0.4

fix:补充默认loading样式组件

2022-06-15 v3.0.5

fix:补充默认loading样式less文件

Keywords

antd

FAQs

Package last updated on 16 Jun 2022

Related posts