Your IP : 216.73.216.52


Current Path : /snap/lxd/current/share/lxd-ui/assets/
Upload File :
Current File : //snap/lxd/current/share/lxd-ui/assets/AuthenticationOptions-CutYms6a.js

import{b as n,A as o,j as s,d as i,R as t,b3 as c,L as l}from"./index-BsQN_SZU.js";const h=()=>{const{data:a}=n(),e=a?.auth_methods?.includes(o.OIDC);return s.jsxs("div",{className:"auth-options-container",children:[s.jsxs(i.Card,{className:"auth-option-card u-flex-column",children:[s.jsx(i.Icon,{name:"security",className:"auth-option-icon u-hide--small"}),s.jsx("h2",{className:"p-heading--4",children:"SSO"}),s.jsxs("ul",{className:"auth-option-pros-cons-list",children:[s.jsx("li",{children:"Centralized access control for teams"}),s.jsx("li",{children:"Requires an external identity provider"})]}),e&&s.jsx("a",{className:"p-button--positive auth-option-link",href:`${t}/oidc/login`,children:"Login with SSO"}),!e&&s.jsx(c,{docPath:"/howto/oidc",className:"p-button--positive auth-option-link",children:"Set up SSO login"})]}),s.jsxs(i.Card,{className:"auth-option-card u-flex-column",children:[s.jsx(i.Icon,{name:"certificate",className:"auth-option-icon u-hide--small"}),s.jsx("h2",{className:"p-heading--4",children:"TLS"}),s.jsxs("ul",{className:"auth-option-pros-cons-list",children:[s.jsx("li",{children:"Quick setup with a browser certificate"}),s.jsx("li",{children:"No external identity provider required"})]}),s.jsx(l,{className:"p-button auth-option-link",to:`${t}/ui/login/certificate-generate`,children:"Set up TLS login"})]})]})};export{h as A};