Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,756 for securityv1 (0.51 sec)

  1. tests/test_security_http_basic_realm_description.py

    from base64 import b64encode
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBasic(realm="simple", description="HTTPBasic scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials = Security(security)):
        return {"username": credentials.username, "password": credentials.password}
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. tests/test_security_http_bearer_optional.py

    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBearer(auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(
        credentials: Optional[HTTPAuthorizationCredentials] = Security(security),
    ):
        if credentials is None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. security/pkg/server/ca/authenticate/oidc.go

    	}, nil
    }
    
    // Authenticate - based on the old OIDC authenticator for mesh expansion.
    func (j *JwtAuthenticator) Authenticate(authRequest security.AuthContext) (*security.Caller, error) {
    	if authRequest.GrpcContext != nil {
    		bearerToken, err := security.ExtractBearerToken(authRequest.GrpcContext)
    		if err != nil {
    			return nil, fmt.Errorf("ID token extraction error: %v", err)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. security/pkg/server/ca/server.go

    	"google.golang.org/grpc/status"
    	"k8s.io/apimachinery/pkg/types"
    
    	pb "istio.io/api/security/v1alpha1"
    	"istio.io/istio/pilot/pkg/features"
    	"istio.io/istio/pkg/kube/multicluster"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/security"
    	"istio.io/istio/security/pkg/pki/ca"
    	caerror "istio.io/istio/security/pkg/pki/error"
    	"istio.io/istio/security/pkg/pki/util"
    )
    
    var serverCaLog = log.RegisterScope("serverca", "Citadel server log")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:26 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/security/http-basic-auth.md

    * Import `HTTPBasic` and `HTTPBasicCredentials`.
    * Create a "`security` scheme" using `HTTPBasic`.
    * Use that `security` with a dependency in your *path operation*.
    * It returns an object of type `HTTPBasicCredentials`:
        * It contains the `username` and `password` sent.
    
    === "Python 3.9+"
    
        ```Python hl_lines="4  8  12"
        {!> ../../../docs_src/security/tutorial006_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 14:33:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/client-go/SECURITY_CONTACTS

    # Defined below are the security contacts for this repo.
    #
    # They are the contact point for the Product Security Committee to reach out
    # to for triaging and handling of incoming issues.
    #
    # The below names agree to abide by the
    # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy)
    # and will be removed and replaced if they violate that agreement.
    #
    # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 02 20:01:36 UTC 2020
    - 554 bytes
    - Viewed (0)
  7. pkg/security/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package security contains security apis and implementations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 16 17:48:21 UTC 2016
    - 695 bytes
    - Viewed (0)
  8. tests/test_security_http_digest_optional.py

    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPDigest(auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(
        credentials: Optional[HTTPAuthorizationCredentials] = Security(security),
    ):
        if credentials is None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. releasenotes/notes/25818.yaml

    # Valid Values are:
    # - bug-fix -- Used to specify that this change represents a bug fix.
    # - security-fix -- Used to specify that this change represents a security fix.
    # - feature -- Used to specify a new feature that has been added.
    # - test -- Used to describe additional testing added. This file is optional for
    #   tests, but included for completeness.
    kind: security-fix
    
    # area describes the area that this change affects.
    # Valid values are:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 11 21:20:58 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/StaticJAASConfiguration.java

     */
    package jcifs.smb;
    
    
    import java.util.HashMap;
    import java.util.Map;
    
    import javax.security.auth.login.AppConfigurationEntry;
    import javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag;
    import javax.security.auth.login.Configuration;
    
    
    /**
     * @author mbechler
     *
     */
    class StaticJAASConfiguration extends Configuration {
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.9K bytes
    - Viewed (0)
Back to top