🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "authorization"

Found 50 matching component(s)

  • class FixedProjectVictoriaGenerator

    Fixed Project Victoria Disclosure Generator that properly handles all warranty sections.

    File: /tf/active/vicechatdev/fixed_project_victoria_generator.py

    class fixedprojectvictoriagenerator
  • function update_access_tokens

    Updates access control tokens for nodes in a Neo4j graph database by traversing relationships from token carrier nodes and storing accumulated access keys.

    File: /tf/active/vicechatdev/dbinit.py

    neo4j graph-database access-control security token-management
  • class User

    A user management class that handles authentication, authorization, user profiles, preferences, file management, and logging for a Panel-based web application with Neo4j backend.

    File: /tf/active/vicechatdev/userclass.py

    authentication authorization user-management role-based-access-control neo4j
  • function access_main_site_library

    Authenticates with Microsoft Graph API and attempts to locate and access the main SharePoint site library using multiple discovery approaches, displaying detailed information about sites, drives, and folder structures.

    File: /tf/active/vicechatdev/SPFCsync/find_main_library.py

    sharepoint microsoft-graph oauth2 authentication diagnostic
  • function check_all_libraries

    Discovers and lists all document libraries in a SharePoint site using Microsoft Graph API, displaying their metadata and contents.

    File: /tf/active/vicechatdev/SPFCsync/check_libraries.py

    sharepoint microsoft-graph document-libraries discovery audit
  • function explore_site_structure

    Explores and displays the complete structure of a SharePoint site using Microsoft Graph API, including drives, document libraries, lists, and alternative API endpoints.

    File: /tf/active/vicechatdev/SPFCsync/diagnostic_comprehensive.py

    sharepoint microsoft-graph site-exploration diagnostic api-discovery
  • function quick_test

    A diagnostic function that tests SharePoint Graph API connectivity and verifies access to the main site library by checking for expected folder structures in the root directory.

    File: /tf/active/vicechatdev/SPFCsync/quick_test.py

    sharepoint diagnostic testing connectivity microsoft-graph
  • class SharePointRestClient

    A SharePoint REST API client that provides app-only authentication and methods for retrieving and downloading documents from SharePoint sites.

    File: /tf/active/vicechatdev/SPFCsync/sharepoint_rest_client.py

    sharepoint rest-api oauth2 authentication document-management
  • function test_sharepoint_api_call

    Tests SharePoint REST API connectivity by making an authenticated GET request to retrieve basic site information and validates the access token and permissions.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_sharepoint.py

    sharepoint api-testing authentication oauth rest-api
  • function test_graph_sites_api

    Tests Microsoft Graph API access to SharePoint sites by attempting to list available sites and locate a specific target site (vicebio.com), then tests drive access if found.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    microsoft-graph sharepoint api-testing authentication oauth2
  • function test_site_drive_access

    Tests access to a SharePoint site's document library (drives) via Microsoft Graph API and attempts to access the first drive's root items.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    microsoft-graph sharepoint api-testing authentication document-library
  • function test_drive_items

    Tests access to items in a Microsoft SharePoint drive by querying the Microsoft Graph API and verifying the response.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    microsoft-graph-api sharepoint authentication api-testing drive-access
  • function test_sharepoint_with_token

    Tests SharePoint REST API connectivity and authentication by making a GET request to retrieve site information using a provided access token.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py

    sharepoint api-testing authentication oauth rest-api
  • function check_site_vs_channels

    Diagnostic function that analyzes and compares SharePoint site structure, specifically examining the main site document library versus Teams channel document libraries to identify the correct library for synchronization.

    File: /tf/active/vicechatdev/SPFCsync/check_site_library.py

    sharepoint diagnostic microsoft-graph document-library teams-channels
  • class SharePointGraphClient

    SharePoint client using Microsoft Graph API. This bypasses SharePoint REST API app-only token issues.

    File: /tf/active/vicechatdev/SPFCsync/sharepoint_graph_client.py

    class sharepointgraphclient
  • function get_root_folders

    Retrieves all folders at the root level of a SharePoint drive using Microsoft Graph API, returning their metadata including name, ID, item count, timestamps, and web URL.

    File: /tf/active/vicechatdev/SPFCsync/test_folder_structure.py

    sharepoint microsoft-graph api folders metadata
  • class SharePointFileCloudSync

    Orchestrates synchronization of documents from SharePoint to FileCloud, managing the complete sync lifecycle including document retrieval, comparison, upload, and folder structure creation.

    File: /tf/active/vicechatdev/SPFCsync/sync_service.py

    synchronization sharepoint filecloud document-management cloud-sync
  • function login_required

    A Flask decorator that enforces authentication requirements on routes by checking for user session data and redirecting unauthenticated users to the login page.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication decorator flask security session-management
  • function is_admin_user

    Checks if the currently authenticated user has administrator privileges by comparing their email against a hardcoded list of admin emails.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication authorization rbac admin access-control
  • function azure_callback

    OAuth 2.0 callback endpoint for Azure AD authentication that exchanges authorization codes for access tokens and establishes user sessions.

    File: /tf/active/vicechatdev/docchat/app.py

    oauth authentication azure-ad callback session-management
  • function api_get_system_config

    Flask API endpoint that retrieves current system configuration settings for admin users only, returning configuration values like system role, expertise, domain context, and supported languages.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api admin configuration system-settings
  • function api_update_system_config

    Flask API endpoint that allows administrators to update system configuration settings including system role, expertise, domain context, custom instructions, output style, and query languages, with persistence to disk.

    File: /tf/active/vicechatdev/docchat/app.py

    admin configuration system-settings api-endpoint flask
  • class AzureSSO

    A class that handles Azure Active Directory (Azure AD) Single Sign-On (SSO) authentication using OAuth 2.0 authorization code flow.

    File: /tf/active/vicechatdev/docchat/auth/azure_auth.py

    azure authentication sso oauth2 azure-ad
  • function is_authenticated

    Checks if a user is authenticated by verifying the presence of 'user' and 'access_token' keys in the Flask session object.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    authentication authorization session-management flask security
  • function require_auth_v1

    A Flask decorator that enforces authentication by checking if a user is authenticated before allowing access to a protected route, redirecting to login if not authenticated.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    authentication decorator flask authorization security
  • function index_v4

    Flask route handler for the root URL ('/') that redirects authenticated users to the document workspace and unauthenticated users to the login page.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask routing authentication redirect web-application
  • function auth_callback

    OAuth callback handler that processes Azure SSO authentication responses, exchanges authorization codes for access tokens, and establishes user sessions.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    oauth authentication azure-sso callback flask-route
  • function api_get_document

    Flask API endpoint that retrieves a specific document by ID, validates user access permissions, and returns the document data as JSON.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask api rest document-retrieval authentication
  • function api_update_document

    Flask API endpoint that updates document metadata (title and custom metadata fields) for a specific document, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api rest flask document-management update
  • function api_delete_document

    REST API endpoint that deletes a document from the application state after verifying the user's ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask rest-api delete-endpoint document-management authentication
  • function api_create_section

    Flask API endpoint that creates a new section within a specified document, handling section positioning, type, level, title, and content with proper authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api flask rest-endpoint document-management section-creation
  • function api_update_section

    REST API endpoint that updates an existing section within a document, allowing modification of title, content, type, and level properties with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api rest flask document-management section-update
  • function api_delete_section

    Flask API endpoint that deletes a specific section from a document after validating user authorization and document existence.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api rest delete section document-management
  • function api_move_section

    Flask API endpoint that moves a document section up or down in the section order, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api flask rest-api document-management section-reordering
  • function api_create_chat_session_v1

    Flask API endpoint that creates a new chat session for a document section or retrieves an existing one if already present.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api flask chat session-management authentication
  • function api_send_chat_message

    Flask API endpoint that handles sending a message in a chat session, processes it through a hybrid RAG engine with configurable search and memory settings, and returns an AI-generated response with references.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask api chat rag hybrid-rag
  • function api_get_chat_session

    Flask API endpoint that retrieves a specific chat session by ID, verifying user access permissions before returning the session data.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask api rest-endpoint chat-session authentication
  • function api_replace_section_content

    API endpoint that replaces the content of a specific section within a document, storing the old content for potential undo operations and updating the section's timestamp.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api rest flask document-management content-replacement
  • function api_export_document

    Flask API endpoint that exports a document in either DOCX or PDF format, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api export document pdf docx
  • function api_delete_chat_uploaded_document

    Flask API endpoint that deletes a user's uploaded document by document ID, requiring authentication and returning success/error responses.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask api rest delete document-management
  • function index_v3

    Flask route handler that serves as the application's main entry point, redirecting users to either the chat page if authenticated or the login page if not.

    File: /tf/active/vicechatdev/vice_ai/app.py

    flask routing authentication redirect web-application
  • function auth_callback_v2

    Flask route handler that processes OAuth 2.0 callback from Azure AD, exchanges authorization code for access tokens, and establishes user session.

    File: /tf/active/vicechatdev/vice_ai/app.py

    oauth authentication azure-ad callback flask-route
  • function chat_v1

    Flask route handler that renders the main chat interface with available collections and instruction templates, requiring authentication.

    File: /tf/active/vicechatdev/vice_ai/app.py

    flask web-route chat-interface authentication template-rendering
  • function api_task_status_v1

    Flask API endpoint that retrieves and returns the status of a background task, with user authorization checks.

    File: /tf/active/vicechatdev/vice_ai/app.py

    api flask background-tasks task-status authentication
  • function api_cancel_task

    Flask API endpoint that cancels a background task if it belongs to the authenticated user and is currently processing.

    File: /tf/active/vicechatdev/vice_ai/app.py

    api flask rest-endpoint task-management cancellation
  • function get_current_user

    Retrieves the current user's email from the Flask session if authenticated, otherwise returns 'anonymous'.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    authentication session-management user-identification flask web-application
  • function require_auth

    A decorator function that enforces authentication requirements on Flask route handlers by checking if a user is authenticated before allowing access to the decorated function.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    decorator authentication authorization flask security
  • function auth_callback_v1

    OAuth2 callback handler for Azure SSO authentication that processes authorization codes, exchanges them for access tokens, and establishes user sessions.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    authentication oauth2 azure-sso callback session-management
  • function index

    Flask route handler that serves as the main landing page for authenticated users, displaying their documents and text sections in a workspace interface.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask route-handler authentication web-application index-page
  • function get_text_section

    Flask API endpoint that retrieves a specific text section by ID with optional version history and usage information, enforcing ownership-based access control.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api rest endpoint text-section

Search Examples