Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for initOAuth (0.05 seconds)

  1. tests/test_swagger_ui_escape.py

            init_oauth={"clientId": "my-client", "appName": "My App"},
        )
        body = html.body.decode()
        assert '"clientId": "my-client"' in body
        assert '"appName": "My App"' in body
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 24 09:28:10 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  2. fastapi/openapi/docs.py

        html += """
        presets: [
            SwaggerUIBundle.presets.apis,
            SwaggerUIBundle.SwaggerUIStandalonePreset
            ],
        })"""
    
        if init_oauth:
            html += f"""
            ui.initOAuth({_html_safe_json(jsonable_encoder(init_oauth))})
            """
    
        html += """
        </script>
        </body>
        </html>
        """
        return HTMLResponse(html)
    
    
    def get_redoc_html(
        *,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 24 09:28:10 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  3. docs/en/docs/release-notes.md

    * Add support for Swagger UI [initOauth](https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/oauth2.md) settings with the parameter `swagger_ui_init_oauth`. PR [#499](https://github.com/tiangolo/fastapi/pull/499) by [@zamiramir](https://github.com/zamiramir).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
Back to Top