- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 19 for OAuth (0.02 seconds)
-
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
from fastapi.security import OAuth2AuthorizationCodeBearer from fastapi.testclient import TestClient from inline_snapshot import snapshot oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="api/oauth/authorize", tokenUrl="/api/oauth/token", scopes={"read": "Read access", "write": "Write access"}, ) async def get_token(token: Annotated[str, Depends(oauth2_scheme)]) -> str: return token
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/index.md
## OAuth2 { #oauth2 } OAuth2是一个规范,它定义了几种处理身份认证和授权的方法。 它是一个相当广泛的规范,涵盖了一些复杂的使用场景。 它包括了使用「第三方」进行身份认证的方法。 这就是所有带有「使用 Facebook,Google,X (Twitter),GitHub 登录」的系统背后所使用的机制。 ### OAuth 1 { #oauth-1 } 有一个 OAuth 1,它与 OAuth2 完全不同,并且更为复杂,因为它直接包含了有关如何加密通信的规范。 如今它已经不是很流行,没有被广泛使用了。 OAuth2 没有指定如何加密通信,它期望你为应用程序使用 HTTPS 进行通信。 /// tip | 提示 在有关**部署**的章节中,你将了解如何使用 Traefik 和 Let's Encrypt 免费设置 HTTPS。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 4.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/index.md
## OAuth2 { #oauth2 } OAuth2 是一套規範,定義了多種處理身分驗證與授權的方法。 它相當龐大,涵蓋許多複雜的使用情境。 它也包含使用「第三方」進行身分驗證的方式。 這正是各種「使用 Facebook、Google、X(Twitter)、GitHub 登入」系統在底層採用的機制。 ### OAuth 1 { #oauth-1 } 過去有 OAuth 1,和 OAuth2 非常不同,也更複雜,因為它直接規範了如何加密通訊。 它現在並不流行,也很少被使用。 OAuth2 不規範通訊如何加密,而是假設你的應用會透過 HTTPS 提供服務。 /// tip | 提示 在部署相關章節中,你會看到如何使用 Traefik 與 Let's Encrypt 免費設定 HTTPS。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/ja/docs/tutorial/security/index.md
OAuth2は、認証と認可を処理するためのいくつかの方法を定義した仕様です。 かなり広範囲な仕様で、いくつかの複雑なユースケースをカバーしています。 これには「サードパーティ」を使用して認証する方法が含まれています。 これが、「Facebook、Google、X (Twitter)、GitHubを使ってログイン」を使用したすべてのシステムの背後で使われている仕組みです。 ### OAuth 1 { #oauth-1 } OAuth 1というものもありましたが、これはOAuth2とは全く異なり、通信をどのように暗号化するかという仕様が直接的に含まれており、より複雑なものとなっています。 現在ではあまり普及していませんし、使われてもいません。 OAuth2は、通信を暗号化する方法を指定せず、アプリケーションがHTTPSで提供されることを想定しています。 /// tip | 豆知識Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 6.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
assertTrue(exception instanceof Throwable); } @Test public void test_throwAndCatch() { // Test throwing and catching the exception String expectedType = "OAuth"; String expectedMessage = "OAuth token is invalid"; try { throw new InvalidAccessTokenException(expectedType, expectedMessage); } catch (InvalidAccessTokenException e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
docs/works_with_okhttp.md
* [OkReplay](https://github.com/airbnb/okreplay): Record and replay OkHttp network interaction in your tests. * [okhttp-signpost](https://github.com/pakerfeldt/okhttp-signpost): OAuth signing with signpost and OkHttp. * [okhttp-spring-boot](https://github.com/freefair/okhttp-spring-boot): Spring Boot starters for OkHttp
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Nov 26 07:59:38 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java
assertNull(authenticator.getResponse(null)); } @Test public void test_getLoginCredential_withRequest() { // With a request context, should return ActionResponseCredential for OAuth redirect final var credential = authenticator.getLoginCredential(); assertNotNull(credential); assertTrue(credential instanceof ActionResponseCredential); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 15 12:54:47 GMT 2026 - 11K bytes - Click Count (0) -
fastapi/security/oauth2.py
) self.scheme_name = scheme_name or self.__class__.__name__ self.auto_error = auto_error def make_not_authenticated_error(self) -> HTTPException: """ The OAuth 2 specification doesn't define the challenge that should be used, because a `Bearer` token is not really the only option to authenticate.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 24 16:32:10 GMT 2026 - 23.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/OsddHelperTest.java
@Override public String getOsddLinkEnabled() { return "auto"; } @Override public String getSsoType() { return "oauth"; } }); final OsddHelper osddHelper = new OsddHelper(); osddHelper.setOsddPath("osdd/osdd.xml"); osddHelper.init(); assertFalse(osddHelper.hasOpenSearchFile());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 24.3K bytes - Click Count (0) -
pom.xml
<artifactId>jspecify</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.google.oauth-client</groupId> <artifactId>google-oauth-client</artifactId> <version>${google.oauth.client.version}</version> </dependency> <dependency> <groupId>com.google.http-client</groupId> <artifactId>google-http-client</artifactId>
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 07:04:54 GMT 2026 - 49.9K bytes - Click Count (0)