View Source OpenApiSpex.Plug.SwaggerUIOAuth2Redirect (open_api_spex v3.21.2)

This plug will handle the callback from an OAuth server

Summary

Functions

Initializes the plug.

Functions

Initializes the plug.

Options

  • :csp_nonce_assign_key - Optional. An assign key to find the CSP nonce value used for assets. Supports either atom() or a map of type %{optional(:script) => atom()}.

Example

get "/oauth2-redirect.html",
    OpenApiSpex.Plug.SwaggerUIOAuth2Redirect,
    csp_nonce_assign_key: %{script: :script_src_nonce}