Search Options

Results per page
Sort
Preferred Languages
Advance

Results 761 - 770 of 1,046 for fo2o (0.04 sec)

  1. docs/zh/docs/tutorial/security/oauth2-jwt.md

    例如,识别**汽车**或**博客**。
    
    接着,为实体添加权限,比如**驾驶**(汽车)或**编辑**(博客)。
    
    然后,把 JWT 令牌交给用户(或机器人),他们就可以执行驾驶汽车,或编辑博客等操作。无需注册账户,只要有 API 生成的 JWT 令牌就可以。
    
    同理,JWT 可以用于更复杂的场景。
    
    在这些情况下,多个实体的 ID 可能是相同的,以 ID  `foo` 为例,用户的 ID 是 `foo`,车的 ID 是 `foo`,博客的 ID 也是  `foo`。
    
    为了避免 ID 冲突,在给用户创建 JWT 令牌时,可以为 `sub` 键的值加上前缀,例如 `username:`。因此,在本例中,`sub` 的值可以是:`username:johndoe`。
    
    注意,划重点,`sub` 键在整个应用中应该只有一个唯一的标识符,而且应该是字符串。
    
    ## 检查
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. cmd/endpoint_test.go

    	u2, _ := url.Parse("https://example.org/path")
    	u4, _ := url.Parse("http://192.168.253.200/path")
    	rootSlashFoo, _ := filepath.Abs("/foo")
    	testCases := []struct {
    		arg              string
    		expectedEndpoint Endpoint
    		expectedType     EndpointType
    		expectedErr      error
    	}{
    		{"/foo", Endpoint{&url.URL{Path: rootSlashFoo}, true, -1, -1, -1}, PathEndpointType, nil},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. tests/test_get_request_body.py

        price: float
    
    
    @app.get("/product")
    async def create_item(product: Product):
        return product
    
    
    client = TestClient(app)
    
    
    def test_get_with_body():
        body = {"name": "Foo", "description": "Some description", "price": 5.5}
        response = client.request("GET", "/product", json=body)
        assert response.json() == body
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java

     */
    public class ClassLoaderIteratorTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null);
            final ClassLoader cl2 = new URLClassLoader(new URL[] { new URL("file:/bar") }, cl1);
            final ClassLoader cl3 = new URLClassLoader(new URL[] { new URL("file:/baz") }, cl2);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental_test.cc

                                                 "description", "label1", "label2");
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
      auto* cell2 = TFE_MonitoringGetCellCounter2(counter2, "foo", "bar");
      TFE_MonitoringCounterCellIncrementBy(cell2, 2);
      EXPECT_EQ(TFE_MonitoringCounterCellValue(cell2), 2);
    
      TFE_MonitoringDeleteCounter1(counter1);
      TFE_MonitoringDeleteCounter2(counter2);
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/operand_test.go

    	{"[X0,X1,X2,X3]", "register list: expected '-' after `[X0`, found ','"},
    	{"$foo<ABI0>", "ABI selector only permitted when compiling runtime, reference was to \"foo\""},
    }
    
    var amd64BadOperandRuntimeTests = []badOperandTest{
    	{"$foo<bletch>", "malformed ABI selector \"bletch\" in reference to \"foo\""},
    }
    
    var x86OperandTests = []operandTest{
    	{"$(2.928932188134524e-01)", "$(0.29289321881345243)"},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

             * be cached and cause other types to fail even though they may
             * not be the authority for the name. For example, if a WINS lookup
             * for FOO fails and caches unknownAddress for FOO, a subsequent
             * lookup for FOO using BCAST should not fail because of that
             * name cached from WINS.
             *
             * So, here we apply the source addresses hashCode to each name to
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 17.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

    import junit.framework.TestCase;
    
    /** Tests for {@link MoreObjects}. */
    @GwtCompatible(emulated = true)
    public class MoreObjectsTest extends TestCase {
      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/MoreObjectsTest.java

    import junit.framework.TestCase;
    
    /** Tests for {@link MoreObjects}. */
    @GwtCompatible(emulated = true)
    public class MoreObjectsTest extends TestCase {
      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

        val body =
          MultipartBody.Builder()
            .addPart(headersOf("Foo", "Bar"), "Baz".toRequestBody(null))
            .build()
        assertThat(body.parts.size).isEqualTo(1)
        val part1Buffer = Buffer()
        val part1 = body.part(0)
        part1.body.writeTo(part1Buffer)
        assertThat(part1.headers).isEqualTo(headersOf("Foo", "Bar"))
        assertThat(part1Buffer.readUtf8()).isEqualTo("Baz")
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top