
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
baishan-iam-login
Advanced tools
在 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组件 | 否 | undefined | React.Component|React.FuncitonComponent |
| config | 其他配置 | 否 | undefined | Object |
iam 登录组件初始化
todo:登出机制待完善,待 iam 提供用户 ssoid 标识
IAM 登录组件 mvp 版本
bugfix:修复了 token 过期页面重复 loading 的 bug
bugfix:调整 401 判断逻辑
bugfix:补充 token 有效性验证方法
对接iam的后端sdk版本 v0.9.3 前端解析json数据更新
补充uid的localStorage信息存储
使用ts+hooks的方式重写组件,并且改造发包方式(转换成es5)
bugfix:修复部分场景下,callback路由跳转null的bug
feat:补充loading样式,且支持用户传入自定义的loading组件(class组件或者func组件)
fix:补充默认loading样式组件
fix:补充默认loading样式less文件
FAQs
白山iam登录组件
The npm package baishan-iam-login receives a total of 4 weekly downloads. As such, baishan-iam-login popularity was classified as not popular.
We found that baishan-iam-login demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.