Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 80 for access_token (0.14 sec)

  1. src/main/java/org/codelibs/fess/es/config/bsentity/BsAccessToken.java

        @Override
        public AccessTokenDbm asDBMeta() {
            return AccessTokenDbm.getInstance();
        }
    
        @Override
        public String asTableDbName() {
            return "access_token";
        }
    
        // ===================================================================================
        //                                                                              Source
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_security/test_tutorial003_an.py

    client = TestClient(app)
    
    
    def test_login():
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"access_token": "johndoe", "token_type": "bearer"}
    
    
    def test_login_incorrect_password():
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

    The response of the `token` endpoint must be a JSON object.
    
    It should have a `token_type`. In our case, as we are using "Bearer" tokens, the token type should be "`bearer`".
    
    And it should have an `access_token`, with a string containing our access token.
    
    For this simple example, we are going to just be completely insecure and return the same `username` as the token.
    
    /// tip
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/security/simple-oauth2.md

    Die Response des `token`-Endpunkts muss ein JSON-Objekt sein.
    
    Es sollte einen `token_type` haben. Da wir in unserem Fall „Bearer“-Token verwenden, sollte der Token-Typ "`bearer`" sein.
    
    Und es sollte einen `access_token` haben, mit einem String, der unseren Zugriffstoken enthält.
    
    In diesem einfachen Beispiel gehen wir einfach völlig unsicher vor und geben denselben `username` wie der Token zurück.
    
    /// tip | "Tipp"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. src/main/resources/esclient.xml

    		<!-- fess index -->
    		<postConstruct name="addIndexConfig">
    			<arg>"fess/doc"</arg>
    		</postConstruct>
    		<!-- fess_config index -->
    		<postConstruct name="addIndexConfig">
    			<arg>"fess_config.access_token/access_token"</arg>
    		</postConstruct>
    		<postConstruct name="addIndexConfig">
    			<arg>"fess_config.bad_word/bad_word"</arg>
    		</postConstruct>
    		<postConstruct name="addIndexConfig">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Oct 21 12:20:52 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/cbean/bs/BsAccessTokenCB.java

        @Override
        public AccessTokenDbm asDBMeta() {
            return AccessTokenDbm.getInstance();
        }
    
        @Override
        public String asTableDbName() {
            return "access_token";
        }
    
        @Override
        public boolean hasSpecifiedColumn() {
            return _specification != null;
        }
    
        @Override
        public ConditionQuery localCQ() {
            return doGetConditionQuery();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/security/simple-oauth2.md

    ///
    
    ## 返回 Token
    
    `token` 端点的响应必须是 JSON 对象。
    
    响应返回的内容应该包含 `token_type`。本例中用的是**Bearer**Token,因此, Token 类型应为**`bearer`**。
    
    返回内容还应包含 `access_token` 字段,它是包含权限 Token 的字符串。
    
    本例只是简单的演示,返回的 Token 就是 `username`,但这种方式极不安全。
    
    /// tip | "提示"
    
    下一章介绍使用哈希密码和 <abbr title="JSON Web Tokens">JWT</abbr> Token 的真正安全机制。
    
    但现在,仅关注所需的特定细节。
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial003_an_py310.py

    @needs_py310
    def test_login(client: TestClient):
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"access_token": "johndoe", "token_type": "bearer"}
    
    
    @needs_py310
    def test_login_incorrect_password(client: TestClient):
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_security/test_tutorial003_py310.py

    @needs_py310
    def test_login(client: TestClient):
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"access_token": "johndoe", "token_type": "bearer"}
    
    
    @needs_py310
    def test_login_incorrect_password(client: TestClient):
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. internal/config/identity/openid/jwt.go

    }
    
    func (r *Config) updateUserinfoClaims(ctx context.Context, arn arn.ARN, accessToken string, claims map[string]interface{}) error {
    	pCfg, ok := r.arnProviderCfgsMap[arn]
    	// If claim user info is enabled, get claims from userInfo
    	// and overwrite them with the claims from JWT.
    	if ok && pCfg.ClaimUserinfo {
    		if accessToken == "" {
    			return errors.New("access_token is mandatory if user_info claim is enabled")
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 02:46:36 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top