OIDC的使用示例(JS)

如下为系统提供的基于Javascript的几种调用方式:

1、Icon模式:

示例代码:

<div id="oidc" name="oidc"></div>
<script type="text/javascript">
  oidc.init("oidc", { view: "icon", state: "login" });
</script>

2、Card模式:

示例代码:

<div id="oidc" name="oidc"></div>
<script type="text/javascript">
  oidc.init("oidc", { view: "card", columns: 5, state: "login" });
</script>

3、Item模式:

示例代码:

<div id="oidc" name="oidc"></div>
<script type="text/javascript">
  oidc.init("oidc", { view: "item", state: "login" });
</script>