* [ Body - Fields  ](../../body-fields/)
      * [ Body - Nested Models  ](../../body-nested-models/)
      * [ Declare Request Example Data  ](../../schema-extra-example/)
      * [ Extra Data Types  ](../../extra-data-types/)
      * [ Cookie Parameters  ](../../cookie-params/)
      * [ Header Parameters  ](../../header-params/)
      * [ Response Model - Return Type  ](../../response-model/)
      * [ Extra Models  ](../../extra-models/)
      * [ Response Status Code  ](../../response-status-code/)
      * [ Form Data  ](../../request-forms/)
      * [ Request Files  ](../../request-files/)
      * [ Request Forms and Files  ](../../request-forms-and-files/)
      * [ Handling Errors  ](../../handling-errors/)
      * [ Path Operation Configuration  ](../../path-operation-configuration/)
      * [ JSON Compatible Encoder  ](../../encoder/)
      * [ Body - Updates  ](../../body-updates/)
      * [ Dependencies  ](../../dependencies/)

Dependencies

        * [ Classes as Dependencies  ](../../dependencies/classes-as-dependencies/)
        * [ Sub-dependencies  ](../../dependencies/sub-dependencies/)
        * [ Dependencies in path operation decorators  ](../../dependencies/dependencies-in-path-operation-decorators/)
        * [ Global Dependencies  ](../../dependencies/global-dependencies/)
        * [ Dependencies with yield  ](../../dependencies/dependencies-with-yield/)
      * [ Security  ](../)

Security

        * [ Security - First Steps  ](../first-steps/)
        * [ Get Current User  ](../get-current-user/)
        * Simple OAuth2 with Password and Bearer  [ Simple OAuth2 with Password and Bearer  ](./) Table of contents 
          * Get the ` username ` and ` password `
            * ` scope `
          * Code to get the ` username ` and ` password `
            * ` OAuth2PasswordRequestForm `
            * Use the form data 
            * Check the password 
              * Password hashing 
                * Why use password hashing 
              * About ` **user_dict `
          * Return the token 
          * Update the dependencies 
          * See it in action 
            * Authenticate 
            * Get your own user data 
            * Inactive user 
          * Recap 
        * [ OAuth2 with Password (and hashing), Bearer with JWT tokens  ](../oauth2-jwt/)
      * [ Middleware  ](../../middleware/)
      * [ CORS (Cross-Origin Resource Sharing)  ](../../cors/)
      * [ SQL (Relational) Databases  ](../../sql-databases/)
      * [ Bigger Applications - Multiple Files  ](../../bigger-applications/)
      * [ Background Tasks  ](../../background-tasks/)
      * [ Metadata and Docs URLs  ](../../metadata/)
      * [ Static Files  ](../../static-files/)
      * [ Testing  ](../../testing/)
      * [ Debugging  ](../../debugging/)
    * [ Advanced User Guide  ](../../../advanced/)

Advanced User Guide

      * [ Path Operation Advanced Configuration  ](../../../advanced/path-operation-advanced-configuration/)
      * [ Additional Status Codes  ](../../../advanced/additional-status-codes/)
      * [ Return a Response Directly  ](../../../advanced/response-directly/)
      * [ Custom Response - HTML, Stream, File, others  ](../../../advanced/custom-response/)
      * [ Additional Responses in OpenAPI  ](../../../advanced/additional-responses/)
      * [ Response Cookies  ](../../../advanced/response-cookies/)
      * [ Response Headers  ](../../../advanced/response-headers/)
      * [ Response - Change Status Code  ](../../../advanced/response-change-status-code/)
      * [ Advanced Dependencies  ](../../../advanced/advanced-dependencies/)
      * [ Advanced Security  ](../../../advanced/security/)

Advanced Security

        * [ OAuth2 scopes  ](../../../advanced/security/oauth2-scopes/)
        * [ HTTP Basic Auth  ](../../../advanced/security/http-basic-auth/)
      * [ Using the Request Directly  ](../../../advanced/using-request-directly/)
      * [ Using Dataclasses  ](../../../advanced/dataclas