Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 1,006 for Security (0.09 seconds)

  1. .github/workflows/osv-scanner-scheduled.yml

    name: OSV-Scanner Scheduled Scan
    
    on:
      schedule:
        - cron: 0 4 * * 1
    
    permissions:
      # Require writing security events to upload SARIF file to security tab
      security-events: write
      # Only need to read contents
      contents: read
    
    jobs:
      scan-scheduled:
        if: github.repository == 'tensorflow/tensorflow'
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Jan 01 08:09:03 GMT 2026
    - 1.6K bytes
    - Click Count (0)
  2. tests/test_security_openid_connect.py

    from fastapi import Depends, FastAPI, Security
    from fastapi.security.open_id_connect_url import OpenIdConnect
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oid = OpenIdConnect(openIdConnectUrl="/openid")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(oid)):
        user = User(username=oauth_header)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            byte[] testGuid = new byte[16];
            for (int i = 0; i < 16; i++) {
                testGuid[i] = (byte) (i + 1);
            }
            System.arraycopy(testGuid, 0, buffer, bufferIndex + 4, 16);
    
            // Set security mode (2 bytes)
            int testSecurityMode = 0x0003;
            SMBUtil.writeInt2(testSecurityMode, buffer, bufferIndex + 20);
    
            // Set dialect (2 bytes)
            int testDialect = 0x0311;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  4. docs/ja/docs/advanced/security/index.md

    # 高度なセキュリティ { #advanced-security }
    
    ## 追加機能 { #additional-features }
    
    [チュートリアル - ユーザーガイド: セキュリティ](../../tutorial/security/index.md)で扱ったもの以外にも、セキュリティを扱うための追加機能がいくつかあります。
    
    /// tip | 豆知識
    
    次の節は**必ずしも「高度」ではありません**。
    
    あなたのユースケースでは、その中のいずれかに解決策があるかもしれません。
    
    ///
    
    ## まずチュートリアルを読む { #read-the-tutorial-first }
    
    以下の節は、すでにメインの[チュートリアル - ユーザーガイド: セキュリティ](../../tutorial/security/index.md)を読んでいることを前提とします。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 878 bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            final int negotiateContextOffset = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // Validate security buffer parameters
            if (securityBufferLength < 0 || securityBufferLength > 65536) { // 64KB max for security buffer
                throw new SMBProtocolDecodingException("Invalid security buffer length: " + securityBufferLength + " (must be 0-65536)");
            }
            if (securityBufferOffset < 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  6. tests/test_security_oauth2_optional_description.py

    import pytest
    from fastapi import Depends, FastAPI, Security
    from fastapi.security import OAuth2, OAuth2PasswordRequestFormStrict
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    reusable_oauth2 = OAuth2(
        flows={
            "password": {
                "tokenUrl": "token",
                "scopes": {"read:users": "Read the users", "write:users": "Create users"},
            }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  7. tests/test_security_scopes_sub_dependency.py

    # Ref: https://github.com/fastapi/fastapi/discussions/6024#discussioncomment-8541913
    
    
    from typing import Annotated
    
    import pytest
    from fastapi import Depends, FastAPI, Security
    from fastapi.security import SecurityScopes
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="call_counts")
    def call_counts_fixture():
        return {
            "get_db_session": 0,
            "get_current_user": 0,
            "get_user_me": 0,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

    /**
     * SMB1 NT Transaction subcommand for querying security descriptors.
     *
     * This transaction allows retrieval of Windows security descriptors
     * which contain access control information for files and directories.
     */
    public class NtTransQuerySecurityDesc extends SmbComNtTransaction {
    
        int fid;
        int securityInformation;
    
        /**
         * Constructs an NT transaction to query security descriptor information.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/dcerpc/DcerpcSecurityProvider.java

     */
    
    package jcifs.smb1.dcerpc;
    
    import jcifs.smb1.dcerpc.ndr.NdrBuffer;
    
    /**
     * Interface for DCERPC security providers that handle message protection
     */
    public interface DcerpcSecurityProvider {
        /**
         * Wraps outgoing DCERPC message data for security protection
         * @param outgoing the buffer containing data to be wrapped
         * @throws DcerpcException if the wrapping operation fails
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial002_an_py310.py hl[25] *}
    
    ## 取得使用者 { #get-the-user }
    
    `get_current_user` 會使用我們建立的(假的)工具函式,它接收一個作為 `str` 的 token,並回傳我們的 Pydantic `User` 模型:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## 注入目前使用者 { #inject-the-current-user }
    
    現在我們可以在*路徑操作*中用相同的 `Depends` 來使用 `get_current_user`:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 3.7K bytes
    - Click Count (0)
Back to Top