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

This plug will handle the callback from an OAuth server

Link to this section Summary

Functions

Initializes the plug.

Link to this section Functions

Initializes the plug.

options

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

Example

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