limit access to swagger page

hi there.
how can I limit access to swagger page (drf-yasg) ? I want to only authenticated users can access this page. I set up permissions.IsAuthenticated and public=False, but when I check it as anonymous user, I anyway can see this page.
Thanks.

schema_view = get_schema_view(
    openapi.Info(
        title="Snippets API",
        default_version="v1",
        description="Test description",
        terms_of_service="https://www.google.com/policies/terms/",
        contact=openapi.Contact(email="contact@snippets.local"),
        license=openapi.License(name="BSD License"),
    ),
    public=True,
    permission_classes=(permissions.IsAdminUser,),
)