import{s as X,o as Y,n as Z}from"../chunks/scheduler.d6170356.js";import{S as tt,i as et,g as u,s as r,r as I,A as nt,h as p,f as n,c as o,j as N,u as z,x as w,k as A,l as it,y as st,a as i,v as D,d as F,t as j,w as G,m as Q,n as W}from"../chunks/index.fcd4cc08.js";import{T as at}from"../chunks/Tip.b09c67cf.js";import{H as lt,E as rt}from"../chunks/EditOnGithub.da2b595c.js";function ot(C){let a,l,f="Enterprise Hub",c;return{c(){a=Q("This feature is part of the "),l=u("a"),l.textContent=f,c=Q("."),this.h()},l(s){a=W(s,"This feature is part of the "),l=p(s,"A",{href:!0,"data-svelte-h":!0}),w(l)!=="svelte-vg0acv"&&(l.textContent=f),c=W(s,"."),this.h()},h(){A(l,"href","https://huggingface.co/enterprise")},m(s,g){i(s,a,g),i(s,l,g),i(s,c,g)},p:Z,d(s){s&&(n(a),n(l),n(c))}}}function ut(C){let a,l,f,c,s,g,h,O,d,U="Single sign-on (SSO) allows organizations to securely manage user authentication through their own identity provider (IdP). Both SAML 2.0 and OpenID Connect (OIDC) protocols are supported.",b,m,q='<img class="block dark:hidden !m-0" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/SSO.png" alt="screenshot of Hugging Face Single Sign-On (SSO) feature"/> <img class="hidden dark:block !m-0" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-SSO.png" alt="screenshot of Hugging Face Single Sign-On (SSO) feature"/>',T,$,B="This feature allows organizations to:",H,S,R="<li>Enforce mandatory authentication through your company’s IdP</li> <li>Automatically manage user access and roles based on your IdP attributes</li> <li>Support popular providers like Okta, OneLogin, and Azure Active Directory</li> <li>Maintain security while allowing external collaborators when needed</li> <li>Control session timeouts and role mappings</li>",P,v,V="This Enterprise Hub feature helps organizations maintain consistent security policies while giving their teams seamless access to Hugging Face resources.",L,x,J='<a href="./security-sso">Getting started with SSO →</a>',M,_,k,y,E;return s=new lt({props:{title:"Single Sign-On (SSO)",local:"single-sign-on-sso",headingTag:"h1"}}),h=new at({props:{warning:!0,$$slots:{default:[ot]},$$scope:{ctx:C}}}),_=new rt({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/enterprise-sso.md"}}),{c(){a=u("meta"),l=r(),f=u("p"),c=r(),I(s.$$.fragment),g=r(),I(h.$$.fragment),O=r(),d=u("p"),d.textContent=U,b=r(),m=u("div"),m.innerHTML=q,T=r(),$=u("p"),$.textContent=B,H=r(),S=u("ul"),S.innerHTML=R,P=r(),v=u("p"),v.textContent=V,L=r(),x=u("p"),x.innerHTML=J,M=r(),I(_.$$.fragment),k=r(),y=u("p"),this.h()},l(t){const e=nt("svelte-u9bgzb",document.head);a=p(e,"META",{name:!0,content:!0}),e.forEach(n),l=o(t),f=p(t,"P",{}),N(f).forEach(n),c=o(t),z(s.$$.fragment,t),g=o(t),z(h.$$.fragment,t),O=o(t),d=p(t,"P",{"data-svelte-h":!0}),w(d)!=="svelte-1gkayx5"&&(d.textContent=U),b=o(t),m=p(t,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),w(m)!=="svelte-xrya22"&&(m.innerHTML=q),T=o(t),$=p(t,"P",{"data-svelte-h":!0}),w($)!=="svelte-1ccc365"&&($.textContent=B),H=o(t),S=p(t,"UL",{"data-svelte-h":!0}),w(S)!=="svelte-xi20ip"&&(S.innerHTML=R),P=o(t),v=p(t,"P",{"data-svelte-h":!0}),w(v)!=="svelte-daa1v5"&&(v.textContent=V),L=o(t),x=p(t,"P",{"data-svelte-h":!0}),w(x)!=="svelte-1w8gr20"&&(x.innerHTML=J),M=o(t),z(_.$$.fragment,t),k=o(t),y=p(t,"P",{}),N(y).forEach(n),this.h()},h(){A(a,"name","hf:doc:metadata"),A(a,"content",pt),A(m,"class","flex justify-center"),it(m,"max-width","550px")},m(t,e){st(document.head,a),i(t,l,e),i(t,f,e),i(t,c,e),D(s,t,e),i(t,g,e),D(h,t,e),i(t,O,e),i(t,d,e),i(t,b,e),i(t,m,e),i(t,T,e),i(t,$,e),i(t,H,e),i(t,S,e),i(t,P,e),i(t,v,e),i(t,L,e),i(t,x,e),i(t,M,e),D(_,t,e),i(t,k,e),i(t,y,e),E=!0},p(t,[e]){const K={};e&2&&(K.$$scope={dirty:e,ctx:t}),h.$set(K)},i(t){E||(F(s.$$.fragment,t),F(h.$$.fragment,t),F(_.$$.fragment,t),E=!0)},o(t){j(s.$$.fragment,t),j(h.$$.fragment,t),j(_.$$.fragment,t),E=!1},d(t){t&&(n(l),n(f),n(c),n(g),n(O),n(d),n(b),n(m),n(T),n($),n(H),n(S),n(P),n(v),n(L),n(x),n(M),n(k),n(y)),n(a),G(s,t),G(h,t),G(_,t)}}}const pt='{"title":"Single Sign-On (SSO)","local":"single-sign-on-sso","sections":[],"depth":1}';function ct(C){return Y(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class dt extends tt{constructor(a){super(),et(this,a,ct,ut,X,{})}}export{dt as component};
