@nocobase/plugin-auth 1.3.15-beta → 1.3.16-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,17 +7,17 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- (function(i,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@nocobase/client"),require("@nocobase/utils/client"),require("react/jsx-runtime"),require("react"),require("react-i18next"),require("react-router-dom"),require("@formily/react"),require("@emotion/css"),require("antd"),require("@formily/shared"),require("@ant-design/icons")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","@nocobase/utils/client","react/jsx-runtime","react","react-i18next","react-router-dom","@formily/react","@emotion/css","antd","@formily/shared","@ant-design/icons"],e):(i=typeof globalThis!="undefined"?globalThis:i||self,e(i["@nocobase/plugin-auth"]={},i["@nocobase/client"],i["@nocobase/utils"],i.jsxRuntime,i.react,i["react-i18next"],i["react-router-dom"],i["@formily/react"],i["@emotion/css"],i.antd,i["@formily/shared"],i["@ant-design/icons"]))})(this,function(i,e,u,c,l,g,x,h,y,d,U,k){"use strict";var ue=Object.defineProperty,le=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var I=(i,e,u)=>e in i?ue(i,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):i[e]=u,C=(i,e)=>{for(var u in e||(e={}))de.call(e,u)&&I(i,u,e[u]);if(L)for(var u of L(e))ye.call(e,u)&&I(i,u,e[u]);return i},T=(i,e)=>le(i,me(e));var j=(i,e,u)=>(I(i,typeof e!="symbol"?e+"":e,u),u);var v=(i,e,u)=>new Promise((c,l)=>{var g=y=>{try{h(u.next(y))}catch(d){l(d)}},x=y=>{try{h(u.throw(y))}catch(d){l(d)}},h=y=>y.done?c(y.value):Promise.resolve(y.value).then(g,x);h((u=u.apply(i,e)).next())});const B="Email/Password",O=t=>{const n=e.useLocationSearch(),o=e.useApp();return l.useEffect(()=>{const r=new URLSearchParams(n),s=r.get("authenticator"),a=r.get("token");a&&(o.apiClient.auth.setToken(a),o.apiClient.auth.setAuthenticator(s))}),c.jsx(c.Fragment,{children:t.children})},b="auth";function A(){return g.useTranslation([b,"client"],{nsMode:"fallback"})}const S=l.createContext([]);S.displayName="AuthenticatorsContext";const F=t=>l.useContext(S).find(o=>o.name===t),D=({children:t})=>{const n=e.useAPIClient(),{data:o=[],error:r,loading:s}=e.useRequest(()=>n.resource("authenticators").publicList().then(a=>{var p;return((p=a==null?void 0:a.data)==null?void 0:p.data)||[]}));if(s)return c.jsx("div",{style:{textAlign:"center",marginTop:20},children:c.jsx(d.Spin,{})});if(r)throw r;return c.jsx(S.Provider,{value:o,children:t})};function q(){var n;const{data:t}=e.useSystemSettings();return c.jsxs("div",{style:{maxWidth:320,margin:"0 auto",paddingTop:"20vh"},children:[c.jsx("h1",{children:(n=t==null?void 0:t.data)==null?void 0:n.title}),c.jsx(D,{children:c.jsx(x.Outlet,{})}),c.jsx("div",{className:y.css`
10
+ (function(i,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@nocobase/client"),require("@nocobase/utils/client"),require("react/jsx-runtime"),require("react"),require("react-i18next"),require("react-router-dom"),require("@formily/react"),require("@emotion/css"),require("antd"),require("@formily/shared"),require("@ant-design/icons")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","@nocobase/utils/client","react/jsx-runtime","react","react-i18next","react-router-dom","@formily/react","@emotion/css","antd","@formily/shared","@ant-design/icons"],e):(i=typeof globalThis!="undefined"?globalThis:i||self,e(i["@nocobase/plugin-auth"]={},i["@nocobase/client"],i["@nocobase/utils"],i.jsxRuntime,i.react,i["react-i18next"],i["react-router-dom"],i["@formily/react"],i["@emotion/css"],i.antd,i["@formily/shared"],i["@ant-design/icons"]))})(this,function(i,e,u,a,l,g,x,h,y,d,U,k){"use strict";var ue=Object.defineProperty,le=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var I=(i,e,u)=>e in i?ue(i,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):i[e]=u,C=(i,e)=>{for(var u in e||(e={}))de.call(e,u)&&I(i,u,e[u]);if(L)for(var u of L(e))ye.call(e,u)&&I(i,u,e[u]);return i},T=(i,e)=>le(i,me(e));var j=(i,e,u)=>(I(i,typeof e!="symbol"?e+"":e,u),u);var v=(i,e,u)=>new Promise((a,l)=>{var g=y=>{try{h(u.next(y))}catch(d){l(d)}},x=y=>{try{h(u.throw(y))}catch(d){l(d)}},h=y=>y.done?a(y.value):Promise.resolve(y.value).then(g,x);h((u=u.apply(i,e)).next())});const B="Email/Password",O=t=>{const n=e.useLocationSearch(),o=e.useApp();return l.useEffect(()=>{const r=new URLSearchParams(n),s=r.get("authenticator"),c=r.get("token");c&&(o.apiClient.auth.setToken(c),o.apiClient.auth.setAuthenticator(s))}),a.jsx(a.Fragment,{children:t.children})},b="auth";function A(){return g.useTranslation([b,"client"],{nsMode:"fallback"})}const S=l.createContext([]);S.displayName="AuthenticatorsContext";const F=t=>l.useContext(S).find(o=>o.name===t),D=({children:t})=>{const n=e.useAPIClient(),{data:o=[],error:r,loading:s}=e.useRequest(()=>n.resource("authenticators").publicList().then(c=>{var p;return((p=c==null?void 0:c.data)==null?void 0:p.data)||[]}));if(s)return a.jsx("div",{style:{textAlign:"center",marginTop:20},children:a.jsx(d.Spin,{})});if(r)throw r;return a.jsx(S.Provider,{value:o,children:t})};function q(){var n;const{data:t}=e.useSystemSettings();return a.jsxs("div",{style:{maxWidth:320,margin:"0 auto",paddingTop:"20vh"},children:[a.jsx("h1",{style:{textAlign:"center"},children:a.jsx(e.ReadPretty.TextArea,{value:(n=t==null?void 0:t.data)==null?void 0:n.title})}),a.jsx(D,{children:a.jsx(x.Outlet,{})}),a.jsx("div",{className:y.css`
11
11
  position: absolute;
12
12
  bottom: 24px;
13
13
  width: 100%;
14
14
  left: 0;
15
15
  text-align: center;
16
- `,children:c.jsx(e.PoweredBy,{})})]})}const V=()=>{var r;const n=e.usePlugin(f).authTypes.getEntities(),o={};for(const[s,a]of n)(r=a.components)!=null&&r.SignInForm&&(o[s]=a.components.SignInForm);return o},_=(t=[])=>{var a;const o=e.usePlugin(f).authTypes.getEntities(),r={};for(const[p,m]of o)(a=m.components)!=null&&a.SignInButton&&(r[p]=m.components.SignInButton);const s=Object.keys(r);return t.filter(p=>s.includes(p.authType)).map((p,m)=>l.createElement(r[p.authType],{key:m,authenticator:p}))},M=()=>{const{t}=A();e.useCurrentDocumentTitle("Signin"),e.useViewport();const n=V(),o=l.useContext(S),r=_(o);if(!o.length)return c.jsx("div",{style:{color:"#ccc"},children:t("No authentication methods available.")});const s=o.map(a=>{const p=n[a.authType];if(!p)return;const m=`${t("Sign-in")} (${h.Schema.compile(a.authTypeTitle||a.authType,{t})})`;return C({component:l.createElement(p,{authenticator:a}),tabTitle:a.title||m},a)}).filter(a=>a);return c.jsxs(d.Space,{direction:"vertical",className:y.css`
16
+ `,children:a.jsx(e.PoweredBy,{})})]})}const V=()=>{var r;const n=e.usePlugin(f).authTypes.getEntities(),o={};for(const[s,c]of n)(r=c.components)!=null&&r.SignInForm&&(o[s]=c.components.SignInForm);return o},_=(t=[])=>{var c;const o=e.usePlugin(f).authTypes.getEntities(),r={};for(const[p,m]of o)(c=m.components)!=null&&c.SignInButton&&(r[p]=m.components.SignInButton);const s=Object.keys(r);return t.filter(p=>s.includes(p.authType)).map((p,m)=>l.createElement(r[p.authType],{key:m,authenticator:p}))},M=()=>{const{t}=A();e.useCurrentDocumentTitle("Signin"),e.useViewport();const n=V(),o=l.useContext(S),r=_(o);if(!o.length)return a.jsx("div",{style:{color:"#ccc"},children:t("No authentication methods available.")});const s=o.map(c=>{const p=n[c.authType];if(!p)return;const m=`${t("Sign-in")} (${h.Schema.compile(c.authTypeTitle||c.authType,{t})})`;return C({component:l.createElement(p,{authenticator:c}),tabTitle:c.title||m},c)}).filter(c=>c);return a.jsxs(d.Space,{direction:"vertical",className:y.css`
17
17
  display: flex;
18
- `,children:[s.length>1?c.jsx(d.Tabs,{items:s.map(a=>({label:a.tabTitle,key:a.name,children:a.component}))}):s.length?c.jsx("div",{children:s[0].component}):c.jsx(c.Fragment,{}),c.jsx(d.Space,{direction:"vertical",className:y.css`
18
+ `,children:[s.length>1?a.jsx(d.Tabs,{items:s.map(c=>({label:c.tabTitle,key:c.name,children:c.component}))}):s.length?a.jsx("div",{children:s[0].component}):a.jsx(a.Fragment,{}),a.jsx(d.Space,{direction:"vertical",className:y.css`
19
19
  display: flex;
20
- `,children:r})]})},z=l.createContext({});z.displayName="SignupPageContext";const N=()=>{var r;const n=e.usePlugin(f).authTypes.getEntities(),o={};for(const[s,a]of n)(r=a.components)!=null&&r.SignUpForm&&(o[s]=a.components.SignUpForm);return o},Z=()=>{e.useViewport(),e.useCurrentDocumentTitle("Signup");const t=N(),[n]=x.useSearchParams(),o=n.get("name"),r=F(o),{authType:s}=r||{};return t[s]?l.createElement(t[s],{authenticatorName:o}):c.jsx(x.Navigate,{to:"/not-found",replace:!0})};function K(t="/admin"){const n=x.useNavigate(),[o]=x.useSearchParams();return l.useCallback(()=>{n(o.get("redirect")||"/admin",{replace:!0})},[n,o])}const $=t=>{const n=h.useForm(),o=e.useAPIClient(),r=K(),{refreshAsync:s}=e.useCurrentUserContext();return{run(){return v(this,null,function*(){yield n.submit(),yield o.auth.signIn(n.values,t),yield s(),r()})}}},W={type:"object",name:"passwordForm","x-component":"FormV2",properties:{account:{type:"string","x-component":"Input","x-validator":`{{(value) => {
20
+ `,children:r})]})},z=l.createContext({});z.displayName="SignupPageContext";const N=()=>{var r;const n=e.usePlugin(f).authTypes.getEntities(),o={};for(const[s,c]of n)(r=c.components)!=null&&r.SignUpForm&&(o[s]=c.components.SignUpForm);return o},Z=()=>{e.useViewport(),e.useCurrentDocumentTitle("Signup");const t=N(),[n]=x.useSearchParams(),o=n.get("name"),r=F(o),{authType:s}=r||{};return t[s]?l.createElement(t[s],{authenticatorName:o}):a.jsx(x.Navigate,{to:"/not-found",replace:!0})};function K(t="/admin"){const n=x.useNavigate(),[o]=x.useSearchParams();return l.useCallback(()=>{n(o.get("redirect")||"/admin",{replace:!0})},[n,o])}const $=t=>{const n=h.useForm(),o=e.useAPIClient(),r=K(),{refreshAsync:s}=e.useCurrentUserContext();return{run(){return v(this,null,function*(){yield n.submit(),yield o.auth.signIn(n.values,t),yield s(),r()})}}},W={type:"object",name:"passwordForm","x-component":"FormV2",properties:{account:{type:"string","x-component":"Input","x-validator":`{{(value) => {
21
21
  if (!value) {
22
22
  return t("Please enter your username or email");
23
23
  }
@@ -28,4 +28,4 @@
28
28
  } else {
29
29
  return /^[^@.<>"'/]{1,50}$/.test(value) || t("Please enter a valid username");
30
30
  }
31
- }}}`,"x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Username/Email")}}',style:{}}},password:{type:"string","x-component":"Password",required:!0,"x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Password")}}',style:{}}},actions:{type:"void","x-component":"div",properties:{submit:{title:'{{t("Sign in")}}',type:"void","x-component":"Action","x-component-props":{htmlType:"submit",block:!0,type:"primary",useAction:"{{ useBasicSignIn }}",style:{width:"100%"}}}}},signUp:{type:"void","x-component":"Link","x-component-props":{to:"{{ signUpLink }}"},"x-content":'{{t("Create an account")}}',"x-visible":"{{ allowSignUp }}"}}},G=t=>{const{t:n}=A(),o=t.authenticator,{authType:r,name:s,options:a}=o,m=!!(N()[r]&&(a!=null&&a.allowSignUp)),ae=`/signup?name=${s}`,pe=()=>$(s);return c.jsx(e.SchemaComponent,{schema:W,scope:{useBasicSignIn:pe,allowSignUp:m,signUpLink:ae,t:n}})},H=t=>{const n=x.useNavigate(),o=h.useForm(),r=e.useAPIClient(),{t:s}=g.useTranslation();return{run(){return v(this,null,function*(){var p;yield o.submit(),yield r.auth.signUp(o.values,t==null?void 0:t.authenticator),d.message.success(((p=t==null?void 0:t.message)==null?void 0:p.success)||s("Sign up successfully, and automatically jump to the sign in page")),setTimeout(()=>{n("/signin")},2e3)})}}},J={type:"object",name:U.uid(),"x-component":"FormV2",properties:{username:{type:"string",required:!0,"x-component":"Input","x-validator":{username:!0},"x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Username")}}',style:{}}},password:{type:"string",required:!0,"x-component":"Password","x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Password")}}',checkStrength:!0,style:{}},"x-reactions":[{dependencies:[".confirm_password"],fulfill:{state:{selfErrors:'{{$deps[0] && $self.value && $self.value !== $deps[0] ? t("Password mismatch") : ""}}'}}}]},confirm_password:{type:"string",required:!0,"x-component":"Password","x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Confirm password")}}',style:{}},"x-reactions":[{dependencies:[".password"],fulfill:{state:{selfErrors:'{{$deps[0] && $self.value && $self.value !== $deps[0] ? t("Password mismatch") : ""}}'}}}]},actions:{type:"void","x-component":"div",properties:{submit:{title:'{{t("Sign up")}}',type:"void","x-component":"Action","x-component-props":{block:!0,type:"primary",htmlType:"submit",useAction:"{{ useBasicSignUp }}",style:{width:"100%"}}}}},link:{type:"void","x-component":"div",properties:{link:{type:"void","x-component":"Link","x-component-props":{to:"/signin"},"x-content":'{{t("Log in with an existing account")}}'}}}}},Q=({authenticatorName:t})=>{const{t:n}=A(),o=()=>H({authenticator:t}),r=F(t),{options:s}=r;return s!=null&&s.allowSignUp?c.jsx(e.SchemaComponent,{schema:J,scope:{useBasicSignUp:o,t:n}}):c.jsx(x.Navigate,{to:"/not-found",replace:!0})},X=()=>{const{t}=A();return c.jsx(e.SchemaComponent,{scope:{t},components:{Alert:d.Alert},schema:{type:"object",properties:{public:{type:"object",properties:{allowSignUp:{"x-decorator":"FormItem",type:"boolean",title:'{{t("Allow to sign up")}}',"x-component":"Checkbox",default:!0}}},notice:{type:"void","x-component":"Alert","x-component-props":{showIcon:!0,message:'{{t("The authentication allows users to sign in via username or email.")}}'}}}}})},w=l.createContext({type:""});w.displayName="AuthTypeContext";const P=l.createContext({types:[]});P.displayName="AuthTypesContext";const Y=()=>{const{types:t}=l.useContext(P);return t},E={name:"authenticators",sortable:!0,fields:[{name:"id",type:"string",interface:"id"},{interface:"input",type:"string",name:"name",uiSchema:{type:"string",title:'{{t("Auth UID")}}',"x-component":"Input","x-validator":t=>/^[a-zA-Z0-9_-]+$/.test(t)?"":e.i18n.t("a-z, A-Z, 0-9, _, -"),required:!0}},{interface:"input",type:"string",name:"authType",uiSchema:{type:"string",title:'{{t("Auth Type")}}',"x-component":"Select",dataSource:"{{ types }}",required:!0}},{interface:"input",type:"string",name:"title",uiSchema:{type:"string",title:'{{t("Title")}}',"x-component":"Input"}},{interface:"textarea",type:"string",name:"description",uiSchema:{type:"string",title:'{{t("Description")}}',"x-component":"Input"}},{type:"boolean",name:"enabled",uiSchema:{type:"boolean",title:'{{t("Enabled")}}',"x-component":"Checkbox"}}]},R={type:"object",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues(t){const n=e.useActionContext(),{type:o}=l.useContext(w);return e.useRequest(()=>Promise.resolve({data:{name:`s_${U.uid()}`,authType:o}}),T(C({},t),{refreshDeps:[n.visible]}))}},title:'{{t("Add new")}}',properties:{name:{"x-component":"CollectionField","x-decorator":"FormItem"},authType:{"x-component":"CollectionField","x-decorator":"FormItem","x-component-props":{options:"{{ types }}"}},title:{"x-component":"CollectionField","x-decorator":"FormItem"},description:{"x-component":"CollectionField","x-decorator":"FormItem"},enabled:{"x-component":"CollectionField","x-decorator":"FormItem"},options:{type:"object","x-component":"Options"},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ cm.useCreateAction }}"}}}}}}}},ee={type:"void",name:"authenticators","x-decorator":"ResourceActionProvider","x-decorator-props":{collection:E,resourceName:"authenticators",dragSort:!0,request:{resource:"authenticators",action:"list",params:{pageSize:50,sort:"sort",appends:[]}}},"x-component":"CollectionProvider_deprecated","x-component-props":{collection:E},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{delete:{type:"void",title:'{{t("Delete")}}',"x-component":"Action","x-component-props":{icon:"DeleteOutlined",useAction:"{{ cm.useBulkDestroyAction }}",confirm:{title:"{{t('Delete')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},create:{type:"void",title:'{{t("Add new")}}',"x-component":"AddNew","x-component-props":{type:"primary"}}}},table:{type:"void","x-uid":"input","x-component":"Table.Void","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"},useDataSource:"{{ cm.useDataSourceFromRAC }}",useAction(){const t=e.useAPIClient(),{t:n}=g.useTranslation();return{move(r,s){return v(this,null,function*(){yield t.resource("authenticators").move({sourceId:r.id,targetId:s.id}),d.message.success(n("Saved successfully"),.2)})}}}},properties:{id:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{id:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}},name:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{name:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},authType:{title:'{{t("Auth Type")}}',type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{authType:{type:"string","x-component":"Select","x-read-pretty":!0,enum:"{{ types }}"}}},title:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{title:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},description:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{description:{type:"boolean","x-component":"CollectionField","x-read-pretty":!0}}},enabled:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{enabled:{type:"boolean","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"Table.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{update:{type:"void",title:'{{t("Configure")}}',"x-component":"Action.Link","x-component-props":{type:"primary"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:"{{ cm.useValuesFromRecord }}"},title:'{{t("Configure")}}',properties:{name:{"x-component":"CollectionField","x-decorator":"FormItem"},authType:{"x-component":"CollectionField","x-decorator":"FormItem","x-component-props":{options:"{{ types }}"}},title:{"x-component":"CollectionField","x-decorator":"FormItem"},description:{"x-component":"CollectionField","x-decorator":"FormItem"},enabled:{"x-component":"CollectionField","x-decorator":"FormItem"},options:{type:"object","x-component":"Options"},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ cm.useUpdateAction }}"}}}}}}}},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-component-props":{confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"},useAction:"{{cm.useDestroyAction}}"},"x-disabled":"{{ useCanNotDelete() }}"}}}}}}}}},te=t=>{const n=e.useRecord(),o=e.useRequest(()=>Promise.resolve({data:C({},n.options)}),T(C({},t),{manual:!0})),{run:r}=o,s=e.useActionContext();return l.useEffect(()=>{s.visible&&r()},[s.visible,r]),o},oe=t=>{var r;const o=e.usePlugin(f).authTypes.get(t);return(r=o==null?void 0:o.components)==null?void 0:r.AdminSettingsForm},ne=h.observer(()=>{const t=h.useForm(),n=e.useRecord(),o=oe(t.values.authType||n.authType);return o?c.jsx(o,{}):null},{displayName:"Options"}),se=()=>{const{setVisible:t}=e.useActionContext();return{run(){return v(this,null,function*(){t(!1)})}}},re=()=>{const{t}=g.useTranslation(),[n,o]=l.useState(!1),[r,s]=l.useState(""),a=Y(),p=a.map(m=>T(C({},m),{onClick:()=>{o(!0),s(m.value)}}));return c.jsx(e.ActionContextProvider,{value:{visible:n,setVisible:o},children:c.jsxs(w.Provider,{value:{type:r},children:[c.jsx(d.Dropdown,{menu:{items:p},children:c.jsxs(d.Button,{icon:c.jsx(k.PlusOutlined,{}),type:"primary",children:[t("Add new")," ",c.jsx(k.DownOutlined,{})]})}),c.jsx(e.SchemaComponent,{scope:{useCloseAction:se,types:a,setType:s},schema:R})]})})},ie=()=>(e.useAsyncData(),!1),ce=()=>{const{t}=A(),[n,o]=l.useState([]),r=e.useAPIClient();return e.useRequest(()=>r.resource("authenticators").listTypes().then(s=>{var p;return(((p=s==null?void 0:s.data)==null?void 0:p.data)||[]).map(m=>({key:m.name,label:h.Schema.compile(m.title||m.name,{t}),value:m.name}))}),{onSuccess:s=>{o(s)}}),c.jsx(d.Card,{bordered:!1,children:c.jsx(P.Provider,{value:{types:n},children:c.jsx(e.SchemaComponent,{schema:ee,components:{AddNew:re,Options:ne},scope:{types:n,useValuesFromOptions:te,useCanNotDelete:ie,t}})})})};class f extends e.Plugin{constructor(){super(...arguments);j(this,"authTypes",new u.Registry)}registerType(o,r){this.authTypes.register(o,r)}load(){return v(this,null,function*(){this.app.pluginSettingsManager.add(b,{icon:"LoginOutlined",title:`{{t("Authentication", { ns: "${b}" })}}`,Component:ce,aclSnippet:"pm.auth.authenticators"}),this.router.add("auth",{Component:"AuthLayout"}),this.router.add("auth.signin",{path:"/signin",Component:"SignInPage"}),this.router.add("auth.signup",{path:"/signup",Component:"SignUpPage"}),this.app.addComponents({AuthLayout:q,SignInPage:M,SignUpPage:Z}),this.app.providers.unshift([O,{}]),this.registerType(B,{components:{SignInForm:G,SignUpForm:Q,AdminSettingsForm:X}})})}}i.AuthLayout=q,i.AuthenticatorsContext=S,i.AuthenticatorsContextProvider=D,i.PluginAuthClient=f,i.default=f,i.useAuthenticator=F,i.useSignIn=$,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
31
+ }}}`,"x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Username/Email")}}',style:{}}},password:{type:"string","x-component":"Password",required:!0,"x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Password")}}',style:{}}},actions:{type:"void","x-component":"div",properties:{submit:{title:'{{t("Sign in")}}',type:"void","x-component":"Action","x-component-props":{htmlType:"submit",block:!0,type:"primary",useAction:"{{ useBasicSignIn }}",style:{width:"100%"}}}}},signUp:{type:"void","x-component":"Link","x-component-props":{to:"{{ signUpLink }}"},"x-content":'{{t("Create an account")}}',"x-visible":"{{ allowSignUp }}"}}},G=t=>{const{t:n}=A(),o=t.authenticator,{authType:r,name:s,options:c}=o,m=!!(N()[r]&&(c!=null&&c.allowSignUp)),ce=`/signup?name=${s}`,pe=()=>$(s);return a.jsx(e.SchemaComponent,{schema:W,scope:{useBasicSignIn:pe,allowSignUp:m,signUpLink:ce,t:n}})},H=t=>{const n=x.useNavigate(),o=h.useForm(),r=e.useAPIClient(),{t:s}=g.useTranslation();return{run(){return v(this,null,function*(){var p;yield o.submit(),yield r.auth.signUp(o.values,t==null?void 0:t.authenticator),d.message.success(((p=t==null?void 0:t.message)==null?void 0:p.success)||s("Sign up successfully, and automatically jump to the sign in page")),setTimeout(()=>{n("/signin")},2e3)})}}},J={type:"object",name:U.uid(),"x-component":"FormV2",properties:{username:{type:"string",required:!0,"x-component":"Input","x-validator":{username:!0},"x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Username")}}',style:{}}},password:{type:"string",required:!0,"x-component":"Password","x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Password")}}',checkStrength:!0,style:{}},"x-reactions":[{dependencies:[".confirm_password"],fulfill:{state:{selfErrors:'{{$deps[0] && $self.value && $self.value !== $deps[0] ? t("Password mismatch") : ""}}'}}}]},confirm_password:{type:"string",required:!0,"x-component":"Password","x-decorator":"FormItem","x-component-props":{placeholder:'{{t("Confirm password")}}',style:{}},"x-reactions":[{dependencies:[".password"],fulfill:{state:{selfErrors:'{{$deps[0] && $self.value && $self.value !== $deps[0] ? t("Password mismatch") : ""}}'}}}]},actions:{type:"void","x-component":"div",properties:{submit:{title:'{{t("Sign up")}}',type:"void","x-component":"Action","x-component-props":{block:!0,type:"primary",htmlType:"submit",useAction:"{{ useBasicSignUp }}",style:{width:"100%"}}}}},link:{type:"void","x-component":"div",properties:{link:{type:"void","x-component":"Link","x-component-props":{to:"/signin"},"x-content":'{{t("Log in with an existing account")}}'}}}}},Q=({authenticatorName:t})=>{const{t:n}=A(),o=()=>H({authenticator:t}),r=F(t),{options:s}=r;return s!=null&&s.allowSignUp?a.jsx(e.SchemaComponent,{schema:J,scope:{useBasicSignUp:o,t:n}}):a.jsx(x.Navigate,{to:"/not-found",replace:!0})},X=()=>{const{t}=A();return a.jsx(e.SchemaComponent,{scope:{t},components:{Alert:d.Alert},schema:{type:"object",properties:{public:{type:"object",properties:{allowSignUp:{"x-decorator":"FormItem",type:"boolean",title:'{{t("Allow to sign up")}}',"x-component":"Checkbox",default:!0}}},notice:{type:"void","x-component":"Alert","x-component-props":{showIcon:!0,message:'{{t("The authentication allows users to sign in via username or email.")}}'}}}}})},w=l.createContext({type:""});w.displayName="AuthTypeContext";const P=l.createContext({types:[]});P.displayName="AuthTypesContext";const Y=()=>{const{types:t}=l.useContext(P);return t},E={name:"authenticators",sortable:!0,fields:[{name:"id",type:"string",interface:"id"},{interface:"input",type:"string",name:"name",uiSchema:{type:"string",title:'{{t("Auth UID")}}',"x-component":"Input","x-validator":t=>/^[a-zA-Z0-9_-]+$/.test(t)?"":e.i18n.t("a-z, A-Z, 0-9, _, -"),required:!0}},{interface:"input",type:"string",name:"authType",uiSchema:{type:"string",title:'{{t("Auth Type")}}',"x-component":"Select",dataSource:"{{ types }}",required:!0}},{interface:"input",type:"string",name:"title",uiSchema:{type:"string",title:'{{t("Title")}}',"x-component":"Input"}},{interface:"textarea",type:"string",name:"description",uiSchema:{type:"string",title:'{{t("Description")}}',"x-component":"Input"}},{type:"boolean",name:"enabled",uiSchema:{type:"boolean",title:'{{t("Enabled")}}',"x-component":"Checkbox"}}]},R={type:"object",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues(t){const n=e.useActionContext(),{type:o}=l.useContext(w);return e.useRequest(()=>Promise.resolve({data:{name:`s_${U.uid()}`,authType:o}}),T(C({},t),{refreshDeps:[n.visible]}))}},title:'{{t("Add new")}}',properties:{name:{"x-component":"CollectionField","x-decorator":"FormItem"},authType:{"x-component":"CollectionField","x-decorator":"FormItem","x-component-props":{options:"{{ types }}"}},title:{"x-component":"CollectionField","x-decorator":"FormItem"},description:{"x-component":"CollectionField","x-decorator":"FormItem"},enabled:{"x-component":"CollectionField","x-decorator":"FormItem"},options:{type:"object","x-component":"Options"},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ cm.useCreateAction }}"}}}}}}}},ee={type:"void",name:"authenticators","x-decorator":"ResourceActionProvider","x-decorator-props":{collection:E,resourceName:"authenticators",dragSort:!0,request:{resource:"authenticators",action:"list",params:{pageSize:50,sort:"sort",appends:[]}}},"x-component":"CollectionProvider_deprecated","x-component-props":{collection:E},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{delete:{type:"void",title:'{{t("Delete")}}',"x-component":"Action","x-component-props":{icon:"DeleteOutlined",useAction:"{{ cm.useBulkDestroyAction }}",confirm:{title:"{{t('Delete')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},create:{type:"void",title:'{{t("Add new")}}',"x-component":"AddNew","x-component-props":{type:"primary"}}}},table:{type:"void","x-uid":"input","x-component":"Table.Void","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"},useDataSource:"{{ cm.useDataSourceFromRAC }}",useAction(){const t=e.useAPIClient(),{t:n}=g.useTranslation();return{move(r,s){return v(this,null,function*(){yield t.resource("authenticators").move({sourceId:r.id,targetId:s.id}),d.message.success(n("Saved successfully"),.2)})}}}},properties:{id:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{id:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}},name:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{name:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},authType:{title:'{{t("Auth Type")}}',type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{authType:{type:"string","x-component":"Select","x-read-pretty":!0,enum:"{{ types }}"}}},title:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{title:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},description:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{description:{type:"boolean","x-component":"CollectionField","x-read-pretty":!0}}},enabled:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{enabled:{type:"boolean","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"Table.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{update:{type:"void",title:'{{t("Configure")}}',"x-component":"Action.Link","x-component-props":{type:"primary"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:"{{ cm.useValuesFromRecord }}"},title:'{{t("Configure")}}',properties:{name:{"x-component":"CollectionField","x-decorator":"FormItem"},authType:{"x-component":"CollectionField","x-decorator":"FormItem","x-component-props":{options:"{{ types }}"}},title:{"x-component":"CollectionField","x-decorator":"FormItem"},description:{"x-component":"CollectionField","x-decorator":"FormItem"},enabled:{"x-component":"CollectionField","x-decorator":"FormItem"},options:{type:"object","x-component":"Options"},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ cm.useUpdateAction }}"}}}}}}}},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-component-props":{confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"},useAction:"{{cm.useDestroyAction}}"},"x-disabled":"{{ useCanNotDelete() }}"}}}}}}}}},te=t=>{const n=e.useRecord(),o=e.useRequest(()=>Promise.resolve({data:C({},n.options)}),T(C({},t),{manual:!0})),{run:r}=o,s=e.useActionContext();return l.useEffect(()=>{s.visible&&r()},[s.visible,r]),o},oe=t=>{var r;const o=e.usePlugin(f).authTypes.get(t);return(r=o==null?void 0:o.components)==null?void 0:r.AdminSettingsForm},ne=h.observer(()=>{const t=h.useForm(),n=e.useRecord(),o=oe(t.values.authType||n.authType);return o?a.jsx(o,{}):null},{displayName:"Options"}),se=()=>{const{setVisible:t}=e.useActionContext();return{run(){return v(this,null,function*(){t(!1)})}}},re=()=>{const{t}=g.useTranslation(),[n,o]=l.useState(!1),[r,s]=l.useState(""),c=Y(),p=c.map(m=>T(C({},m),{onClick:()=>{o(!0),s(m.value)}}));return a.jsx(e.ActionContextProvider,{value:{visible:n,setVisible:o},children:a.jsxs(w.Provider,{value:{type:r},children:[a.jsx(d.Dropdown,{menu:{items:p},children:a.jsxs(d.Button,{icon:a.jsx(k.PlusOutlined,{}),type:"primary",children:[t("Add new")," ",a.jsx(k.DownOutlined,{})]})}),a.jsx(e.SchemaComponent,{scope:{useCloseAction:se,types:c,setType:s},schema:R})]})})},ie=()=>(e.useAsyncData(),!1),ae=()=>{const{t}=A(),[n,o]=l.useState([]),r=e.useAPIClient();return e.useRequest(()=>r.resource("authenticators").listTypes().then(s=>{var p;return(((p=s==null?void 0:s.data)==null?void 0:p.data)||[]).map(m=>({key:m.name,label:h.Schema.compile(m.title||m.name,{t}),value:m.name}))}),{onSuccess:s=>{o(s)}}),a.jsx(d.Card,{bordered:!1,children:a.jsx(P.Provider,{value:{types:n},children:a.jsx(e.SchemaComponent,{schema:ee,components:{AddNew:re,Options:ne},scope:{types:n,useValuesFromOptions:te,useCanNotDelete:ie,t}})})})};class f extends e.Plugin{constructor(){super(...arguments);j(this,"authTypes",new u.Registry)}registerType(o,r){this.authTypes.register(o,r)}load(){return v(this,null,function*(){this.app.pluginSettingsManager.add(b,{icon:"LoginOutlined",title:`{{t("Authentication", { ns: "${b}" })}}`,Component:ae,aclSnippet:"pm.auth.authenticators"}),this.router.add("auth",{Component:"AuthLayout"}),this.router.add("auth.signin",{path:"/signin",Component:"SignInPage"}),this.router.add("auth.signup",{path:"/signup",Component:"SignUpPage"}),this.app.addComponents({AuthLayout:q,SignInPage:M,SignUpPage:Z}),this.app.providers.unshift([O,{}]),this.registerType(B,{components:{SignInForm:G,SignUpForm:Q,AdminSettingsForm:X}})})}}i.AuthLayout=q,i.AuthenticatorsContext=S,i.AuthenticatorsContextProvider=D,i.PluginAuthClient=f,i.default=f,i.useAuthenticator=F,i.useSignIn=$,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -8,14 +8,14 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.3.15-beta",
11
+ "@nocobase/client": "1.3.16-beta",
12
12
  "react": "18.2.0",
13
- "@nocobase/utils": "1.3.15-beta",
14
- "@nocobase/auth": "1.3.15-beta",
15
- "@nocobase/database": "1.3.15-beta",
16
- "@nocobase/cache": "1.3.15-beta",
17
- "@nocobase/server": "1.3.15-beta",
18
- "@nocobase/test": "1.3.15-beta",
13
+ "@nocobase/utils": "1.3.16-beta",
14
+ "@nocobase/auth": "1.3.16-beta",
15
+ "@nocobase/database": "1.3.16-beta",
16
+ "@nocobase/cache": "1.3.16-beta",
17
+ "@nocobase/server": "1.3.16-beta",
18
+ "@nocobase/test": "1.3.16-beta",
19
19
  "antd": "5.12.8",
20
20
  "@formily/react": "2.3.0",
21
21
  "react-router-dom": "6.21.0",
@@ -23,5 +23,5 @@ module.exports = {
23
23
  "react-i18next": "11.18.6",
24
24
  "@emotion/css": "11.11.2",
25
25
  "@ant-design/icons": "5.2.6",
26
- "@nocobase/actions": "1.3.15-beta"
26
+ "@nocobase/actions": "1.3.16-beta"
27
27
  };
@@ -1 +1 @@
1
- {"name":"cron","description":"Cron jobs for your node","version":"2.4.4","author":"Nick Campbell <nicholas.j.campbell@gmail.com> (https://github.com/ncb000gt)","bugs":{"url":"https://github.com/kelektiv/node-cron/issues"},"repository":{"type":"git","url":"https://github.com/kelektiv/node-cron.git"},"main":"lib/cron","scripts":{"lint":"eslint {lib,tests}/*.js","test":"jest --coverage","test:watch":"jest --watch --coverage","test:types":"tsd","prepare":"husky install","release":"semantic-release"},"types":"types/index.d.ts","dependencies":{"@types/luxon":"~3.3.0","luxon":"~3.3.0"},"devDependencies":{"@commitlint/cli":"~17.6.6","@insurgentlab/commitlint-config":"^18.1.0","@insurgentlab/conventional-changelog-preset":"~6.0.3","@semantic-release/changelog":"~6.0.x","@semantic-release/commit-analyzer":"~9.0.x","@semantic-release/git":"~10.0.x","@semantic-release/github":"~8.1.x","@semantic-release/npm":"~10.0.x","@semantic-release/release-notes-generator":"~11.0.x","chai":"~4.2.x","eslint":"~8.36.x","eslint-config-prettier":"^8.7.x","eslint-config-standard":"~17.0.x","eslint-plugin-import":"~2.27.x","eslint-plugin-jest":"~27.2.x","eslint-plugin-n":"~15.6.x","eslint-plugin-prettier":"~4.2.x","eslint-plugin-promise":"~6.1.x","husky":"^8.0.3","jest":"~29.5.x","prettier":"~2.8.x","semantic-release":"~21.0.x","sinon":"^15.0.x","tsd":"^0.28.1"},"keywords":["cron","node cron","node-cron","schedule","scheduler","cronjob","cron job"],"license":"MIT","contributors":["Brandon der Blätter <https://interlucid.com/contact/> (https://github.com/intcreator)","Romain Beauxis <toots@rastageeks.org> (https://github.com/toots)","James Padolsey <> (https://github.com/jamespadolsey)","Finn Herpich <fh@three-heads.de> (https://github.com/ErrorProne)","Clifton Cunningham <clifton.cunningham@gmail.com> (https://github.com/cliftonc)","Eric Abouaf <eric.abouaf@gmail.com> (https://github.com/neyric)","humanchimp <morphcham@gmail.com> (https://github.com/humanchimp)","Craig Condon <craig@spiceapps.com> (https://github.com/spiceapps)","Dan Bear <daniel@hulu.com> (https://github.com/danhbear)","Vadim Baryshev <vadimbaryshev@gmail.com> (https://github.com/baryshev)","Leandro Ferrari <lfthomaz@gmail.com> (https://github.com/lfthomaz)","Gregg Zigler <greggzigler@gmail.com> (https://github.com/greggzigler)","Jordan Abderrachid <jabderrachid@gmail.com> (https://github.com/jordanabderrachid)","Masakazu Matsushita <matsukaz@gmail.com> (matsukaz)","Christopher Lunt <me@kirisu.co.uk> (https://github.com/kirisu)"],"jest":{"collectCoverage":true,"collectCoverageFrom":["lib/*.js"],"coverageThreshold":{"global":{"statements":80,"branches":80,"functions":70,"lines":80}}},"files":["lib","types","CHANGELOG.md","LICENSE","README.md"],"_lastModified":"2024-09-04T05:10:46.368Z"}
1
+ {"name":"cron","description":"Cron jobs for your node","version":"2.4.4","author":"Nick Campbell <nicholas.j.campbell@gmail.com> (https://github.com/ncb000gt)","bugs":{"url":"https://github.com/kelektiv/node-cron/issues"},"repository":{"type":"git","url":"https://github.com/kelektiv/node-cron.git"},"main":"lib/cron","scripts":{"lint":"eslint {lib,tests}/*.js","test":"jest --coverage","test:watch":"jest --watch --coverage","test:types":"tsd","prepare":"husky install","release":"semantic-release"},"types":"types/index.d.ts","dependencies":{"@types/luxon":"~3.3.0","luxon":"~3.3.0"},"devDependencies":{"@commitlint/cli":"~17.6.6","@insurgentlab/commitlint-config":"^18.1.0","@insurgentlab/conventional-changelog-preset":"~6.0.3","@semantic-release/changelog":"~6.0.x","@semantic-release/commit-analyzer":"~9.0.x","@semantic-release/git":"~10.0.x","@semantic-release/github":"~8.1.x","@semantic-release/npm":"~10.0.x","@semantic-release/release-notes-generator":"~11.0.x","chai":"~4.2.x","eslint":"~8.36.x","eslint-config-prettier":"^8.7.x","eslint-config-standard":"~17.0.x","eslint-plugin-import":"~2.27.x","eslint-plugin-jest":"~27.2.x","eslint-plugin-n":"~15.6.x","eslint-plugin-prettier":"~4.2.x","eslint-plugin-promise":"~6.1.x","husky":"^8.0.3","jest":"~29.5.x","prettier":"~2.8.x","semantic-release":"~21.0.x","sinon":"^15.0.x","tsd":"^0.28.1"},"keywords":["cron","node cron","node-cron","schedule","scheduler","cronjob","cron job"],"license":"MIT","contributors":["Brandon der Blätter <https://interlucid.com/contact/> (https://github.com/intcreator)","Romain Beauxis <toots@rastageeks.org> (https://github.com/toots)","James Padolsey <> (https://github.com/jamespadolsey)","Finn Herpich <fh@three-heads.de> (https://github.com/ErrorProne)","Clifton Cunningham <clifton.cunningham@gmail.com> (https://github.com/cliftonc)","Eric Abouaf <eric.abouaf@gmail.com> (https://github.com/neyric)","humanchimp <morphcham@gmail.com> (https://github.com/humanchimp)","Craig Condon <craig@spiceapps.com> (https://github.com/spiceapps)","Dan Bear <daniel@hulu.com> (https://github.com/danhbear)","Vadim Baryshev <vadimbaryshev@gmail.com> (https://github.com/baryshev)","Leandro Ferrari <lfthomaz@gmail.com> (https://github.com/lfthomaz)","Gregg Zigler <greggzigler@gmail.com> (https://github.com/greggzigler)","Jordan Abderrachid <jabderrachid@gmail.com> (https://github.com/jordanabderrachid)","Masakazu Matsushita <matsukaz@gmail.com> (matsukaz)","Christopher Lunt <me@kirisu.co.uk> (https://github.com/kirisu)"],"jest":{"collectCoverage":true,"collectCoverageFrom":["lib/*.js"],"coverageThreshold":{"global":{"statements":80,"branches":80,"functions":70,"lines":80}}},"files":["lib","types","CHANGELOG.md","LICENSE","README.md"],"_lastModified":"2024-09-06T09:31:17.168Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-auth",
3
- "version": "1.3.15-beta",
3
+ "version": "1.3.16-beta",
4
4
  "main": "./dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/auth",
6
6
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/auth",
@@ -26,7 +26,7 @@
26
26
  "displayName.zh-CN": "用户认证",
27
27
  "description": "User authentication management, including password, SMS, and support for Single Sign-On (SSO) protocols, with extensibility.",
28
28
  "description.zh-CN": "用户认证管理,包括基础的密码认证、短信认证、SSO 协议的认证等,可扩展。",
29
- "gitHead": "56869e2ddab40501e349974ba4a0c7856288371b",
29
+ "gitHead": "28fae8fe9165b82d6ee4d4104cd81530aa897176",
30
30
  "keywords": [
31
31
  "Authentication"
32
32
  ]