EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
AzureSsoCard.jsx
Go to the documentation of this file.
1import React from 'react';
2
3function AzureSsoCard({ onStart, loading, status, user, selectedTenantId }) {
4 return (
5 <div className="config-card">
6 <h3>Azure AD SSO Integration</h3>
7 <p>Enable Single Sign-On for your tenant using Azure Active Directory.</p>
8 <button onClick={onStart} disabled={loading || !selectedTenantId} className="btn-primary">
9 {loading ? 'Connecting...' : 'Setup Azure AD SSO'}
10 </button>
11 {status && (
12 <div className={`status-message ${status.startsWith('Azure') ? 'error' : 'success'}`}>
13 {status}
14 </div>
15 )}
16 {user && (
17 <div className="current-config">
18 <b>Logged in as:</b> {user.email}
19 </div>
20 )}
21 </div>
22 );
23}
24
25export default AzureSsoCard;