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 o,r as I,A as nt,h as p,f as n,c as r,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 j,t as F,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 ot}from"../chunks/index.57043804.js";function rt(y){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(y){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,C,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:[rt]},$$scope:{ctx:y}}}),_=new ot({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/enterprise-sso.md"}}),{c(){a=u("meta"),l=o(),f=u("p"),c=o(),I(s.$$.fragment),g=o(),I(h.$$.fragment),O=o(),d=u("p"),d.textContent=U,b=o(),m=u("div"),m.innerHTML=q,T=o(),$=u("p"),$.textContent=B,H=o(),S=u("ul"),S.innerHTML=R,P=o(),v=u("p"),v.textContent=V,L=o(),x=u("p"),x.innerHTML=J,M=o(),I(_.$$.fragment),k=o(),C=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=r(t),f=p(t,"P",{}),N(f).forEach(n),c=r(t),z(s.$$.fragment,t),g=r(t),z(h.$$.fragment,t),O=r(t),d=p(t,"P",{"data-svelte-h":!0}),w(d)!=="svelte-1gkayx5"&&(d.textContent=U),b=r(t),m=p(t,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),w(m)!=="svelte-it9j16"&&(m.innerHTML=q),T=r(t),$=p(t,"P",{"data-svelte-h":!0}),w($)!=="svelte-1ccc365"&&($.textContent=B),H=r(t),S=p(t,"UL",{"data-svelte-h":!0}),w(S)!=="svelte-xi20ip"&&(S.innerHTML=R),P=r(t),v=p(t,"P",{"data-svelte-h":!0}),w(v)!=="svelte-daa1v5"&&(v.textContent=V),L=r(t),x=p(t,"P",{"data-svelte-h":!0}),w(x)!=="svelte-1w8gr20"&&(x.innerHTML=J),M=r(t),z(_.$$.fragment,t),k=r(t),C=p(t,"P",{}),N(C).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,C,e),E=!0},p(t,[e]){const K={};e&2&&(K.$$scope={dirty:e,ctx:t}),h.$set(K)},i(t){E||(j(s.$$.fragment,t),j(h.$$.fragment,t),j(_.$$.fragment,t),E=!0)},o(t){F(s.$$.fragment,t),F(h.$$.fragment,t),F(_.$$.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(C)),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(y){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};
