Questions tagged [fosoauthserverbundle]

124 questions
1
vote
0 answers

FOSOAuthServerBundle Symfony2 authentication working, but access_token is "rejected" online

I'm using Symfony2 with FOSOAuthServerBundle. What I want to do is login with an user over OAuth and make an API call with the retrieved access_token. Therefore the following steps are executed: 1. GET…
1
vote
2 answers

Could not load type in symfony

I am using FOSOAuthServerBundle and Symfony and I am getting error following error: Could not load type "travel_oauth_server_auth" 500 Internal Server Error - Exception Here is my service.xml file, as I am new to Symfony so I don't know why I am…
Hunt
  • 8,215
  • 28
  • 116
  • 256
1
vote
1 answer

integrate login of FOSUserBundle in FOSOAuthServer

I am tying to integrate FOSUserBundle with FOSOAuthServerBundle now when I fire the url http://localhost/symfony/web/app_dev.php/login I can see the FOSUserBundle form which prompts for username and password. But what I want to implement is once…
Hunt
  • 8,215
  • 28
  • 116
  • 256
1
vote
3 answers

FOSUserBundle with multiple entity managers - Symfony 2 set up

I've been using the FOSUserBundle and the FOSOAuthBundle without issue in a project for a while now, but I've recently added another DB connection and another entity manager and, as a result, can no longer rely on auto_mapping. I've added mapping…
0
votes
1 answer

FOSOAuthServerBundle using entity provider Symfony 4

I've installed fosOauthServerBundle with a custom authentification provider (avoiding FosUserBundle). It seems that the configuration of my service isn't accurate, so the bundle can't find the user provider : Call to a member function…
El mago
  • 11
  • 2
0
votes
1 answer

Create client oauth-server with password and client credentials

I'm deploying an update of an Api (symfony 4.1). I want to create de client oauth-server but I need both grant types (password and client_credentials). In the old deploying the api works with both grant types. How I specify password and client…
Ness
  • 108
  • 1
  • 9
0
votes
1 answer

hwi_oauth can't connect to FOS_OAUTH_SERVER

I looked through several solutions with the centralised login service. My Situation is as following: Central Login under login.domain.tld Backend under backend.domain.tld Customer Service under: support.domain.tld frontend under…
0
votes
0 answers

Doctrine flush remove existing entity values

My entity is: namespace OAuthBundle\Entity; use FOS\OAuthServerBundle\Entity\Client as BaseClient; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table("oauth_client") */ class Client extends BaseClient { /** * @ORM\Id …
0
votes
1 answer

Symfony multiple user types and custom user provider

I am designing architecture and database for an application similar to Uber. And I am stuck with designing User entity and creating custom User provider. There are 2 types of User driver and customer. User can register his emails as both driver and…
user9876776
0
votes
1 answer

FOSOAuthServerBundle + Symfony 4 Configuration - can't import routes

I'm trying to configure the Bundle according to the official documentation, but when I add routes (as described in the docs) Import the routing.yml configuration file in app/config/routing.yml: fos_oauth_server_token: resource:…
0
votes
1 answer

Symfony3 FosUser and FosAuthServer, login user with LDAP on AuthenticationFailureHandler

I'm working in symfony with FosUser and FosAuthServer. I have a front web site who access to an API by Oauth2. On the front web site, if the user is not logon, redirect him to the oauth serveur and after the user is login, redirect him to the font…
0
votes
1 answer

Symfony API Rest login and register

I'm finishing developing a API rest with common endpoints using FOSUserBundle, FOSResBundle and FOSoAuthBundle. In a parallel way, I'm developing another symfony app to consume the services but I'm having several doubts about how to register and…
0
votes
1 answer

Can not delete User with FOSOAuthBundle enabled

I try to delete a user in my symfony 3 app. I use the FOSOAuthBundle and the FOSUserBundle. I tried this code: $em = $this->getDoctrine()->getManager(); $em->remove($user); $em->flush(); But I get this error: An exception occurred while executing…
mgluesenkamp
  • 529
  • 6
  • 19
0
votes
0 answers

Symfony3 FOSOAuthServerBundle: Invalid grant_type parameter or parameter missing

I am trying build a rest api on Symfony3 and using a combination of FOSOAuthServerBundle , JMSerializer and FOSUserBundle. I have the configurations set up to the best of my knowledge i however cannot get the api to return a token. it in fact…
0
votes
1 answer

FOSOAuthServerBundle needs client_secret event the grant_type is password

I'm building an API where i want to use password as grant_type. I set it up using FOSOAuthServer Bundle. I tried to get token without first providing the client_secret and it says that invalid client. Then I included client_secret, and now its…
iamjc015
  • 2,127
  • 6
  • 25
  • 61
1 2 3
8 9