Restrict authentication for public client

Hello everybody,

is there any way to restrict authentication for clients (like a java script single page application) which have to be set to “Access Type” = public?

Only users with certain roles should be able to authenticate with this client.

I know that if I set the client to “Access Type” = confidential I can do this by defining policies in the “Authorization” tab of the client. This is not possible though for public clients.

Regards, Max