- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 197 for escopos (0.06 seconds)
-
internal/config/identity/openid/openid.go
} if scopeList := getCfgVal(Scopes); scopeList != "" { var scopes []string for scope := range strings.SplitSeq(scopeList, ",") { scope = strings.TrimSpace(scope) if scope == "" { return c, config.Errorf("empty scope value is not allowed '%s', please refer to our documentation", scopeList) } scopes = append(scopes, scope) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 17.3K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/oauth2-jwt.md
/// note | 笔记 注意,请求中 `Authorization` 响应头的值以 `Bearer` 开头。 /// ## `scopes` 高级用法 OAuth2 支持**`scopes`**(作用域)。 **`scopes`**为 JWT 令牌添加指定权限。 让持有令牌的用户或第三方在指定限制条件下与 API 交互。 **高级用户指南**中将介绍如何使用 `scopes`,及如何把 `scopes` 集成至 **FastAPI**。 ## 小结 至此,您可以使用 OAuth2 和 JWT 等标准配置安全的 **FastAPI** 应用。 几乎在所有框架中,处理安全问题很快都会变得非常复杂。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 8.9K bytes - Click Count (0) -
fastapi/dependencies/models.py
@cached_property def oauth_scopes(self) -> list[str]: scopes = self.parent_oauth_scopes.copy() if self.parent_oauth_scopes else [] # This doesn't use a set to preserve order, just in case for scope in self.own_oauth_scopes or []: if scope not in scopes: scopes.append(scope) return scopes @cached_property def cache_key(self) -> DependencyCacheKey:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 7.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Jun 12 14:55:55 GMT 2025 - 21K bytes - Click Count (0) -
guava/src/com/google/common/html/HtmlEscapers.java
* use of HTML templating systems. * * @author Sven Mawson * @author David Beaumont * @since 15.0 */ @GwtCompatible public final class HtmlEscapers { /** * Returns an {@link Escaper} instance that escapes HTML metacharacters as specified by <a * href="http://www.w3.org/TR/html4/">HTML 4.01</a>. The resulting strings can be used both in * attribute values and in most elements' text contents, provided that the HTMLCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 3K bytes - Click Count (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
<img src="/img/tutorial/security/image10.png"> /// note Notice the header `Authorization`, with a value that starts with `Bearer `. /// ## Advanced usage with `scopes` { #advanced-usage-with-scopes } OAuth2 has the notion of "scopes". You can use them to add a specific set of permissions to a JWT token.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 02:57:38 GMT 2025 - 10.6K bytes - Click Count (0) -
api/maven-api-di/src/main/java/org/apache/maven/api/di/Scope.java
/** * Meta-annotation that marks other annotations as scope annotations. * <p> * Scopes define the lifecycle and visibility of objects in the dependency injection * system. Custom scope annotations should be annotated with {@code @Scope}. * <p> * Built-in scopes include: * <ul> * <li>{@link Singleton} - One instance per container</li>Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Jan 30 23:28:59 GMT 2025 - 1.7K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
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 app = FastAPI(dependencies=[Depends(get_token)]) @app.get("/admin", dependencies=[Security(get_token, scopes=["read", "write"])]) async def read_admin(): return {"message": "Admin Access"}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.6K bytes - Click Count (0) -
.github/release-drafter.yml
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Oct 09 11:31:04 GMT 2024 - 428 bytes - Click Count (0) -
docs/en/docs/reference/security/index.md
# Security Tools When you need to declare dependencies with OAuth2 scopes you use `Security()`. But you still need to define what is the dependable, the callable that you pass as a parameter to `Depends()` or `Security()`. There are multiple tools that you can use to create those dependables, and they get integrated into OpenAPI so they are shown in the automatic docs UI, they can be used by automatically generated clients and SDKs, etc.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 1.6K bytes - Click Count (0)