Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for grant_type (0.08 sec)

  1. tests/test_security_oauth2_optional.py

                        "loc": ["body", "grant_type"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "grant_type"],
                        "msg": "field required",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. tests/test_security_oauth2.py

                        "loc": ["body", "grant_type"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "grant_type"],
                        "msg": "field required",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. tests/test_security_oauth2_optional_description.py

                        "loc": ["body", "grant_type"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "grant_type"],
                        "msg": "field required",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. fastapi/security/oauth2.py

                    sending the `client_id` and `client_secret` (if any) using HTTP Basic
                    auth.
                    """
                ),
            ] = None,
        ):
            self.grant_type = grant_type
            self.username = username
            self.password = password
            self.scopes = scope.split()
            self.client_id = client_id
            self.client_secret = client_secret
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/security/simple-oauth2.md

    ```
    
    ////
    
    `OAuth2PasswordRequestForm` ๐ŸŽ“ ๐Ÿ”— ๐Ÿ‘ˆ ๐Ÿ“ฃ ๐Ÿ“จ ๐Ÿ’ช โฎ๏ธ:
    
    *  `username`.
    *  `password`.
    * ๐Ÿ“ฆ `scope` ๐Ÿ‘ ๐Ÿฆ ๐ŸŽป, โœ ๐ŸŽป ๐ŸŽ ๐Ÿš€.
    * ๐Ÿ“ฆ `grant_type`.
    
    /// tip
    
    Oauth2๏ธโƒฃ ๐Ÿ”Œ ๐Ÿค™ *๐Ÿšš* ๐Ÿ‘ `grant_type` โฎ๏ธ ๐Ÿ”ง ๐Ÿ’ฒ `password`, โœ‹๏ธ `OAuth2PasswordRequestForm` ๐Ÿšซ ๐Ÿ› ๏ธ โšซ๏ธ.
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ› ๏ธ โšซ๏ธ, โš™๏ธ `OAuth2PasswordRequestFormStrict` โ†ฉ๏ธ `OAuth2PasswordRequestForm`.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial003.py

                        "title": "Body_login_token_post",
                        "required": ["username", "password"],
                        "type": "object",
                        "properties": {
                            "grant_type": IsDict(
                                {
                                    "title": "Grant Type",
                                    "anyOf": [
                                        {"pattern": "password", "type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial003_an_py39.py

                        "title": "Body_login_token_post",
                        "required": ["username", "password"],
                        "type": "object",
                        "properties": {
                            "grant_type": IsDict(
                                {
                                    "title": "Grant Type",
                                    "anyOf": [
                                        {"pattern": "password", "type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. internal/config/identity/openid/provider/keycloak.go

    func (k *KeycloakProvider) LoginWithClientID(clientID, clientSecret string) error {
    	values := url.Values{}
    	values.Set("client_id", clientID)
    	values.Set("client_secret", clientSecret)
    	values.Set("grant_type", "client_credentials")
    
    	req, err := http.NewRequest(http.MethodPost, k.oeConfig.TokenEndpoint, strings.NewReader(values.Encode()))
    	if err != nil {
    		return err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jul 14 18:12:07 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/simple-oauth2.md

    * The `username`.
    * The `password`.
    * An optional `scope` field as a big string, composed of strings separated by spaces.
    * An optional `grant_type`.
    
    /// tip
    
    The OAuth2 spec actually *requires* a field `grant_type` with a fixed value of `password`, but `OAuth2PasswordRequestForm` doesn't enforce it.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/security/simple-oauth2.md

    * Dem `username`.
    * Dem `password`.
    * Einem optionalen `scope`-Feld als langem String, bestehend aus durch Leerzeichen getrennten Strings.
    * Einem optionalen `grant_type` (โ€žArt der Anmeldungโ€œ).
    
    /// tip | "Tipp"
    
    Die OAuth2-Spezifikation *erfordert* tatsรคchlich ein Feld `grant_type` mit dem festen Wert `password`, aber `OAuth2PasswordRequestForm` erzwingt dies nicht.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top