Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 368 for Basic2 (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/Credentials.kt

    object Credentials {
      /** Returns an auth credential for the Basic scheme. */
      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
        password: String,
        charset: Charset = ISO_8859_1,
      ): String {
        val usernameAndPassword = "$username:$password"
        val encoded = usernameAndPassword.encode(charset).base64()
        return "Basic $encoded"
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. fastapi/security/http.py

    class HTTPBasicCredentials(BaseModel):
        """
        The HTTP Basic credentials given as the result of using `HTTPBasic` in a
        dependency.
    
        Read more about it in the
        [FastAPI docs for HTTP Basic Auth](https://fastapi.tiangolo.com/advanced/security/http-basic-auth/).
        """
    
        username: Annotated[str, Doc("The HTTP Basic username.")]
        password: Annotated[str, Doc("The HTTP Basic password.")]
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 19 09:47:28 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial006_an.py

        assert response.headers["WWW-Authenticate"] == "Basic"
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == "Basic"
        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/ClasspathManifest.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package gradlebuild.basics.tasks
    
    import gradlebuild.basics.util.ReproduciblePropertiesWriter
    import org.gradle.api.DefaultTask
    import org.gradle.api.file.ConfigurableFileCollection
    import org.gradle.api.file.FileSystemLocation
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Mar 28 20:26:58 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. tests/test_security_http_basic_realm.py

        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. .idea/scopes/Gradle_public_API.xml

    <component name="DependencyValidationManager">
        <!-- The source of truth for this pattern is `build-logic/basics/src/main/kotlin/gradlebuild/basics/PublicApi.kt` file, please keep them in sync -->
        <scope name="Gradle public API"
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 18 15:08:47 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. tests/test_security_http_basic_optional.py

            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == "Basic"
        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    def test_security_http_basic_non_basic_credentials():
        payload = b64encode(b"johnsecret").decode("ascii")
        auth_header = f"Basic {payload}"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. build-logic-commons/settings.gradle.kts

            gradlePluginPortal()
        }
    }
    
    plugins {
        id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
    }
    
    includeBuild("../build-logic-settings")
    
    // Shared basics for all
    include("basics")
    
    // Platform: defines shared dependency versions
    include("build-platform")
    
    // Compute the identity/version we are building and related details (like current git commit)
    include("module-identity")
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Nov 06 06:19:29 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. internal/jwt/parser_test.go

    	keyfunc     func(*MapClaims) ([]byte, error)
    	claims      jwt.Claims
    	valid       bool
    	errors      int32
    }{
    	{
    		"basic",
    		"",
    		defaultKeyFunc,
    		&MapClaims{
    			MapClaims: jwt.MapClaims{
    				"foo": "bar",
    			},
    		},
    		true,
    		0,
    	},
    	{
    		"basic expired",
    		"", // autogen
    		defaultKeyFunc,
    		&MapClaims{
    			MapClaims: jwt.MapClaims{
    				"foo": "bar",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Nov 05 19:20:08 UTC 2021
    - 6K bytes
    - Viewed (0)
  10. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.identity.tasks
    
    import gradlebuild.basics.BuildEnvironment
    import gradlebuild.basics.util.ReproduciblePropertiesWriter
    import org.gradle.api.DefaultTask
    import org.gradle.api.file.DirectoryProperty
    import org.gradle.api.logging.Logger
    import org.gradle.api.provider.Property
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top