Disable authorization form
Hi,
Is it possible to disable the authorization form? It does not make sense to have this form inside my own app.
Thanks!
I think you can use the event listener (see doc) and always set true on onPreAuthorizationProcess event:
<?php
namespace Acme\MyBundle\EventListener;
use FOS\OAuthServerBundle\Event\OAuthEvent;
class OAuthEventListener
{
public function onPreAuthorizationProcess(OAuthEvent $event)
{
$event->setAuthorizedClient( true );
}
}
Hi,
I think you should look at the grant types: "password" or "client_credentials"
It allows you to send your users login/password to your oauthserver and receive a Token. Only your own Clients should be able to use those grant types.
3rd Party apps should use the "authorization_code" or "token" grant_type. (So they don't deal with your users passwords)
Hope this will help you
Then again, @jmig is right. Look at the grant types and the different "flows".