Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for get_access_token (0.29 sec)

  1. tests/test_tutorial/test_security/test_tutorial005.py

        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
    
        return mod
    
    
    def get_access_token(
        *, username="johndoe", password="secret", scope=None, client: TestClient
    ):
        data = {"username": username, "password": password}
        if scope:
            data["scope"] = scope
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_security/test_tutorial004.py

        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
    
        return mod
    
    
    def get_access_token(*, username="johndoe", password="secret", client: TestClient):
        data = {"username": username, "password": password}
        response = client.post("/token", data=data)
        content = response.json()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/accesstoken/AdminAccesstokenAction.java

            verifyCrudMode(crudMode, CrudMode.DETAILS, this::asListHtml);
            saveToken();
            return asDetailsHtml().useForm(EditForm.class, op -> {
                op.setup(form -> {
                    accessTokenService.getAccessToken(id).ifPresent(entity -> {
                        copyBeanToBean(entity, form,
                                copyOp -> copyOp.exclude(Constants.PERMISSIONS, EXPIRED_TIME)
                                        .excludeNull()
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/accesstoken/ApiAdminAccesstokenAction.java

     */
    package org.codelibs.fess.app.web.api.admin.accesstoken;
    
    import static org.codelibs.core.stream.StreamUtil.stream;
    import static org.codelibs.fess.app.web.admin.accesstoken.AdminAccesstokenAction.getAccessToken;
    
    import java.util.List;
    import java.util.stream.Collectors;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.lang.StringUtil;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/service/AccessTokenService.java

            return accessTokenList;
        }
    
        /**
         * Get the access token.
         * @param id The ID of the access token.
         * @return The access token.
         */
        public OptionalEntity<AccessToken> getAccessToken(final String id) {
            return accessTokenBhv.selectByPK(id);
        }
    
        /**
         * Store the access token.
         * @param accessToken The access token.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java

            if (authResponse instanceof final AuthenticationSuccessResponse oidcResponse) {
                validateAuthRespMatchesCodeFlow(oidcResponse);
                final IAuthenticationResult authData = getAccessToken(oidcResponse.getAuthorizationCode(), getReplyUrl(request));
                validateNonce(stateData, authData);
    
                return new EntraIdCredential(authData);
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 56.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java

                // TODO: Implement JWT signature validation using the provider's public key
    
                final Map<String, Object> attributes = new HashMap<>();
                attributes.put("accesstoken", tr.getAccessToken());
                attributes.put("refreshtoken", tr.getRefreshToken() == null ? "null" : tr.getRefreshToken());
                attributes.put("tokentype", tr.getTokenType());
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sun Dec 14 01:18:25 UTC 2025
    - 16.5K bytes
    - Viewed (0)
Back to top