import{s as ee,n as te,o as ne}from"../chunks/scheduler.9cda857a.js";import{S as ie,i as ae,e as l,s as a,c as q,h as se,a as o,d as n,b as s,f as Z,g as D,j as p,k as F,q as le,l as oe,m as i,n as j,t as U,o as B,p as G}from"../chunks/index.f47f3121.js";import{C as re}from"../chunks/CopyLLMTxtMenu.676ed699.js";import{H as ue,E as ce}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.64d112fc.js";function pe(J){let r,b,y,C,m,w,g,O,c,K='<p>This feature is part of the <a href="https://huggingface.co/enterprise">Team &amp; Enterprise</a> plans.</p>',T,f,Q="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.",H,h,R='Please note that this feature is intended to manage access to organization-specific resources such as private models, datasets, and Spaces. However, by default it does not replace the core authentication mechanism for the Hugging Face platform, meaning that users still need to login with their own HF account. To replace the core authentication, i.e. for enhanced capabilities like automated user provisioning (JIT/SCIM) and global SSO enforcement, see our <a href="./enterprise-hub-advanced-sso">Advanced SSO documentation</a>.',L,u,V='<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"/>',M,d,N="This feature allows organizations to:",P,S,W="<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>",k,v,X="This Enterprise Hub feature helps organizations maintain consistent security policies while giving their teams seamless access to Hugging Face resources.",E,x,Y='<a href="./security-sso">Getting started with SSO →</a>',I,$,z,_,A;return m=new re({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),g=new ue({props:{title:"Single Sign-On (SSO)",local:"single-sign-on-sso",headingTag:"h1"}}),$=new ce({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/enterprise-sso.md"}}),{c(){r=l("meta"),b=a(),y=l("p"),C=a(),q(m.$$.fragment),w=a(),q(g.$$.fragment),O=a(),c=l("blockquote"),c.innerHTML=K,T=a(),f=l("p"),f.textContent=Q,H=a(),h=l("p"),h.innerHTML=R,L=a(),u=l("div"),u.innerHTML=V,M=a(),d=l("p"),d.textContent=N,P=a(),S=l("ul"),S.innerHTML=W,k=a(),v=l("p"),v.textContent=X,E=a(),x=l("p"),x.innerHTML=Y,I=a(),q($.$$.fragment),z=a(),_=l("p"),this.h()},l(e){const t=se("svelte-u9bgzb",document.head);r=o(t,"META",{name:!0,content:!0}),t.forEach(n),b=s(e),y=o(e,"P",{}),Z(y).forEach(n),C=s(e),D(m.$$.fragment,e),w=s(e),D(g.$$.fragment,e),O=s(e),c=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(c)!=="svelte-16y0s3r"&&(c.innerHTML=K),T=s(e),f=o(e,"P",{"data-svelte-h":!0}),p(f)!=="svelte-1gkayx5"&&(f.textContent=Q),H=s(e),h=o(e,"P",{"data-svelte-h":!0}),p(h)!=="svelte-3pyi50"&&(h.innerHTML=R),L=s(e),u=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(u)!=="svelte-it9j16"&&(u.innerHTML=V),M=s(e),d=o(e,"P",{"data-svelte-h":!0}),p(d)!=="svelte-1ccc365"&&(d.textContent=N),P=s(e),S=o(e,"UL",{"data-svelte-h":!0}),p(S)!=="svelte-xi20ip"&&(S.innerHTML=W),k=s(e),v=o(e,"P",{"data-svelte-h":!0}),p(v)!=="svelte-daa1v5"&&(v.textContent=X),E=s(e),x=o(e,"P",{"data-svelte-h":!0}),p(x)!=="svelte-1w8gr20"&&(x.innerHTML=Y),I=s(e),D($.$$.fragment,e),z=s(e),_=o(e,"P",{}),Z(_).forEach(n),this.h()},h(){F(r,"name","hf:doc:metadata"),F(r,"content",me),F(c,"class","warning"),F(u,"class","flex justify-center"),le(u,"max-width","550px")},m(e,t){oe(document.head,r),i(e,b,t),i(e,y,t),i(e,C,t),j(m,e,t),i(e,w,t),j(g,e,t),i(e,O,t),i(e,c,t),i(e,T,t),i(e,f,t),i(e,H,t),i(e,h,t),i(e,L,t),i(e,u,t),i(e,M,t),i(e,d,t),i(e,P,t),i(e,S,t),i(e,k,t),i(e,v,t),i(e,E,t),i(e,x,t),i(e,I,t),j($,e,t),i(e,z,t),i(e,_,t),A=!0},p:te,i(e){A||(U(m.$$.fragment,e),U(g.$$.fragment,e),U($.$$.fragment,e),A=!0)},o(e){B(m.$$.fragment,e),B(g.$$.fragment,e),B($.$$.fragment,e),A=!1},d(e){e&&(n(b),n(y),n(C),n(w),n(O),n(c),n(T),n(f),n(H),n(h),n(L),n(u),n(M),n(d),n(P),n(S),n(k),n(v),n(E),n(x),n(I),n(z),n(_)),n(r),G(m,e),G(g,e),G($,e)}}}const me='{"title":"Single Sign-On (SSO)","local":"single-sign-on-sso","sections":[],"depth":1}';function ge(J){return ne(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ve extends ie{constructor(r){super(),ae(this,r,ge,pe,ee,{})}}export{ve as component};
