Results of 1 - 6 of about 6 for Auth (0.009 sec.)
- Configure Swagger UI 13069
- Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa
...the favicon to use. It is normally shown in the browser tab. """ ), ] = "https://fastapi.tiangolo.com/img/favicon.png" , oauth2_redirect_url : Annotated [ Optional [ str ], Doc ( """ The OAuth2 redirect URL, it is normally automatically handled by F...astAPI. """ ), ] = None , init_oauth : Annotated [ Optional [ Dict [ str , Any ]], Doc ( """ A dictionary with Swagger UI OAuth2 initialization configurations....ui_parameters . items (): html += f " { json . dumps ( key ) } : { json . dumps ( jsonable_encoder ( value )) } , \n " if oauth2_redirect_url : html += f "oauth2RedirectUrl: window.location.origin + ' { oauth2_redirect_url } '," html += """ presets:... - https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
- HTTP Basic Auth 9304
- HTTP Basic Auth Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . For the simplest cases, you can use HTTP Basic Auth. In HTTP Basic Auth, the application expects a
...header that contains a username and a password. If it doesn't receive it, it returns an HTTP 401 "Unauthorized" error. And returns a header WWW-Authenticate with a value of Basic , and an optional realm parameter. That tells th...ord. Then, when you type that username and password, the browser sends them in the header automatically. Simple HTTP Basic Auth Import HTTPBasic and HTTPBasicCredentials . Create a " security scheme" using HTTPBasic . Use that security with a depende...rd_bytes ) if not ( is_correct_username and is_correct_password ): raise HTTPException ( status_code = status . HTTP_401_UNAUTHORIZED , detail = "Incorrect username or password" , headers = { "WWW-Authenticate" : "Basic" }, ) return credentials . use... - https://man.mtool.work/fastapi/0.115/advanced/security/http-basic-auth/
- Release Notes 8591
- Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom
...advanced/custom-response.md . PR #13265 by @11kkw . ? Update Korean translation for docs/ko/docs/tutorial/security/simple-oauth2.md . PR #13335 by @yes0ng . ? Add Russian translation for docs/ru/docs/advanced/response-cookies.md . PR #13327 by @Stepa....1 to 0.19.3. PR #13298 by @dependabot[bot] . ? Update sponsors, add Permit. PR #13288 by @tiangolo . 0.115.8 Fixes ? Fix OAuth2PasswordRequestForm and OAuth2PasswordRequestFormStrict fixed grant_type "password" RegEx. PR #9783 by @skarfie123 . Refac...ocs/pt/docs/advanced/settings.md . PR #13209 by @ceb10n . ? Add Portuguese translation for docs/pt/docs/tutorial/security/oauth2-jwt.md . PR #13205 by @ceb10n . ? Add Indonesian translation for docs/id/docs/index.md . PR #13191 by @gerry-sabar . ? Ad... - https://man.mtool.work/fastapi/0.115/release-notes/
- External Links and Articles 8097
- External Links and Articles FastAPI has a great community constantly growing. There are many posts, articles, tools, and projects, related to FastAPI . Here's an incomplete list of some of them. Tip If you have an article, project, tool, or
...e with FaunaDB and FastAPI by Adejumo Ridwan Suleiman . FastAPI lambda container: serverless simplified by Raf Rasenberg . Authorization on FastAPI with Casbin by Teresa N. Fontanella De Santis . How to monitor FastAPI application performance using P...stubh Gupta . Using GitHub Actions to Deploy a FastAPI Project to Heroku by Somraj Saha . How to Create A Fake Certificate Authority And Generate TLS Certs for FastAPI by @pystar . Building a realtime ticket booking solution with Kafka, FastAPI, and...ox [including a FastAPI server] by Uber Engineering . How to Deploy a Machine Learning Model by Maarten Grootendorst . JWT Authentication with FastAPI and AWS Cognito by Johannes Gontrum . Top 5 Asynchronous Web Frameworks for Python by Ankush Thakur... - https://man.mtool.work/fastapi/0.115/external-links/
- OAuth2 scopes 7860
- OAuth2 scopes Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use OAuth2 scopes directly with FastAPI , they are integrated to work seamlessly. This would
...allow you to have a more fine-grained permission system, following the OAuth2 standard, integrated into your OpenAPI application (and the API docs). OAuth2 with scopes is the mechanism used by many b...ig authentication providers, like Facebook, Google, GitHub, Microsoft, Twitter, etc. They use it to provide specific permissions t...rs and applications. Every time you "log in with" Facebook, Google, GitHub, Microsoft, Twitter, that application is using OAuth2 with scopes. In this section you will see how to manage authentication and authorization with the same OAuth2 with scopes... - https://man.mtool.work/fastapi/0.115/advanced/security/oauth2-scopes/
- Simple OAuth2 with Password and Bearer 7860
- Simple OAuth2 with Password and Bearer Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Now let's build from the previous chapter and add the missing parts to have
...ity flow. Get the username and password We are going to use FastAPI security utilities to get the username and password . OAuth2 specifies that when using the "password flow" (that we are using) the client/user must send a username and password field...users:read or users:write are common examples. instagram_basic is used by Facebook / Instagram. https://www.googleapis.com/auth/drive is used by Google. Info In OAuth2 a "scope" is just a string that declares a specific permission required. It doesn'...t matter if it has other characters like : or if it is a URL. Those details are implementation specific. For OAuth2 they are just strings. Code to get the username and password Now let's use the utilities provided by FastAPI to handle th... - https://man.mtool.work/fastapi/0.115/tutorial/security/simple-oauth2/
PREV
1
NEXT