Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 212 for Authenticate (0.13 sec)

  1. docs_src/security/tutorial003.py

        user = fake_decode_token(token)
        if not user:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Invalid authentication credentials",
                headers={"WWW-Authenticate": "Bearer"},
            )
        return user
    
    
    async def get_current_active_user(current_user: User = Depends(get_current_user)):
        if current_user.disabled:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. docs_src/security/tutorial003_an_py310.py

        user = fake_decode_token(token)
        if not user:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Invalid authentication credentials",
                headers={"WWW-Authenticate": "Bearer"},
            )
        return user
    
    
    async def get_current_active_user(
        current_user: Annotated[User, Depends(get_current_user)],
    ):
        if current_user.disabled:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. docs/recipes.md

          public Authenticate() {
            client = new OkHttpClient.Builder()
                .authenticator(new Authenticator() {
                  @Override public Request authenticate(Route route, Response response) throws IOException {
                    if (response.request().header("Authorization") != null) {
                      return null; // Give up, we've already attempted to authenticate.
                    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/first-steps.md

    Let's imagine that you have your **backend** API in some domain.
    
    And you have a **frontend** in another domain or in a different path of the same domain (or in a mobile application).
    
    And you want to have a way for the frontend to authenticate with the backend, using a **username** and **password**.
    
    We can use **OAuth2** to build that with **FastAPI**.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/security/http-basic-auth.md

    No HTTP Basic Auth, a aplicação espera um cabeçalho que contém um usuário e uma senha.
    
    Caso ela não receba, ela retorna um erro HTTP 401 "Unauthorized" (*Não Autorizado*).
    
    E retorna um cabeçalho `WWW-Authenticate` com o valor `Basic`, e um parâmetro opcional `realm`.
    
    Isso sinaliza ao navegador para mostrar o prompt integrado para um usuário e senha.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

              throw ProtocolException("Received HTTP_PROXY_AUTH (407) code while not using proxy")
            }
            return client.proxyAuthenticator.authenticate(route, userResponse)
          }
    
          HTTP_UNAUTHORIZED -> return client.authenticator.authenticate(route, userResponse)
    
          HTTP_PERM_REDIRECT, HTTP_TEMP_REDIRECT, HTTP_MULT_CHOICE, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_SEE_OTHER -> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

     */
    class JavaNetAuthenticator(private val defaultDns: Dns = Dns.SYSTEM) : okhttp3.Authenticator {
      @Throws(IOException::class)
      override fun authenticate(
        route: Route?,
        response: Response,
      ): Request? {
        val challenges = response.challenges()
        val request = response.request
        val url = request.url
        val proxyAuthorization = response.code == 407
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. docs/sts/web-identity.py

        'sts',
        region_name='us-east-1',
        use_ssl=False,
        endpoint_url='http://localhost:9000',
    )
    
    app = Flask(__name__)
    
    
    @app.route('/')
    def homepage():
        text = '<a href="%s">Authenticate with keycloak</a>'
        return text % make_authorization_url()
    
    
    def make_authorization_url():
        # Generate a random string for the state parameter
        # Save it for use later to prevent xsrf attacks
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 28 01:37:51 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

                return authenticator;
            }
            try {
                // set some System properties
                final SpnegoFilterConfig config = SpnegoFilterConfig.getInstance(new SpengoConfig());
    
                // pre-authenticate
                authenticator = new org.codelibs.spnego.SpnegoAuthenticator(config);
    
                fessConfig.setSystemPropertyAsBoolean(SPNEGO_INITIALIZED, true);
                fessConfig.storeSystemProperties();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/custom-docs-ui-assets.md

    /// tip
    
    The *path operation* for `swagger_ui_redirect` is a helper for when you use OAuth2.
    
    If you integrate your API with an OAuth2 provider, you will be able to authenticate and come back to the API docs with the acquired credentials. And interact with it using the real OAuth2 authentication.
    
    Swagger UI will handle it behind the scenes for you, but it needs this "redirect" helper.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:42:34 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top