Questions tagged [fosoauthserverbundle]

124 questions
0
votes
2 answers

The class 'OAuthBundle\Entity\Client' was not found in the chain configured namespaces FOS\OAuthServerBundle\Document

I did FOSOAuthServer as in documentation https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/blob/master/Resources/doc/index.md but have exception: Doctrine\Common\Persistence\Mapping\MappingException: The class 'OAuthBundle\Entity\Client' was…
Hett
  • 3,484
  • 2
  • 34
  • 51
0
votes
1 answer

FOSOAuthServerBundle invalid client

I tried to follow this blog FOSOAuth Tutorials: I followed all through his explanations except that I change this: service: user_provider: fos_user.user_manager to service: user_provider: fos_user.user_provider.username When I tried to get…
iamjc015
  • 2,127
  • 6
  • 25
  • 61
0
votes
1 answer

FOSOAuthServerBundle + FOSRestBundle + CamelCase = Not authenticating

I have been working on my server in Symfony 2.8, building a rest api which returns json objects in camelCase style, the problem now is that when I integrate the OauthServer bundle it lauches this error Invalid grant_type parameter or parameter…
0
votes
1 answer

Best security practices for OAuth 2 authentication in a Javascript application

I've a REST API, with an OAuth 2 authentication mechanism (FOSOAuthServerBundle on a Symfony 3 application). To get/refresh a token, the URL look like :…
Sylvain
  • 2,742
  • 5
  • 21
  • 34
0
votes
2 answers

Angular2 and symfony3 FOSOAuthServerBundle authorisation

I want to connect my angular2 frontend app with symfony backend. So I'm using FOSOAuthServerBundle (https://github.com/FriendsOfSymfony/FOSOAuthServerBundle) to authorize my frontend app, but I don't understand clearly how to implement this. I…
Emptyhand
  • 41
  • 5
0
votes
1 answer

How to get AuthorizationCode GrantType working in Symfony 3 with FOSOAuthServerBundle

i'm trying to build a Bootstrap for a Symfony3 REST-Application with OAuth2 Support based on FOSOAuth. My current Implementation is based on the following Sources: git:maxpou docker-symfony for Docker Setup symfony.com - CustomUserProvider for own…
takethefake
  • 795
  • 1
  • 9
  • 20
0
votes
1 answer

OAuthStorage::__construct() must implement interface UserProviderInterface, instance of UserManager given

I am working on a simple rest API with OAuth authorization. I followed the following tutorial to setup everything (I started with a clean installed symfony 3 application) https://gist.github.com/tjamps/11d617a4b318d65ca583 After installing…
Jeroen
  • 432
  • 1
  • 9
  • 20
0
votes
2 answers

Symfony Security FOSOAuthServerBundle public and private routes

I am using the FOSOAuthBundle for my REST application I would like most of my routes to require authorization however there are a few that should have public access I have the following in my security.yml: security: encoders: …
Shawn Northrop
  • 5,826
  • 6
  • 42
  • 80
0
votes
2 answers

FOSOAuthServerBundle vs Symfony3 Security howto

I had implemented FOSOAuthServerBundle with Symfony2.8 successfully and it worked. When I tried to work it with Symfony3.2 I had error: Attempted to load class "SecurityContext" from namespace "Symfony\Component\Security\Core". Did you forget a…
milan74sa
  • 1
  • 2
0
votes
3 answers

FOSOAuthServerBundle: Invalid grant_type parameter or parameter missing

I'm trying to build a REST API using Symfony 3.1 and the FOSRestBundle, FOSUserBundle and FOSOAuthServerBundle. I managed to achieve this following the guide at https://gist.github.com/tjamps/11d617a4b318d65ca583. I'm now struggling at the…
eraelpeha
  • 409
  • 5
  • 15
0
votes
1 answer

FOSOAuthServerBundle translate error messages

I installed FOSOAuthServerBundle and everything went well, but I don't know how to translate error messages like this: {"error":"invalid_request","error_description":"Invalid grant_type parameter or parameter missing"} I want to provide…
user6830821
0
votes
1 answer

how to get all users connected to default user without going through login page?

I want to secure my API with FOSUserBundle (and avoid the use of FOSOAuthServerBundle due to lack of documentation with complete example). To make my API secure, I just created firewalls as follows: firewalls: dev: pattern: …
0
votes
2 answers

FOSOAuthServerBundle authorization grant

I'm writing a REST API in Symfony 3.1.1, and I have some problem with authentication. I'm using FOSOAuthServerBundle for this, and it's works fine. The problem is that the clients don't know client_id and client_secret, but his username and…
Abel Osorio
  • 843
  • 8
  • 13
0
votes
1 answer

Duplicate definition of column 'random_id' on entity 'Acme\ApiBundle\Entity\Client' in a field or discriminator column mapping

I created client which extends FOSOAuthServerBundle. The code of this client is the following:
Varg
  • 402
  • 1
  • 6
  • 24
0
votes
2 answers

Symfony FOSOAuthServerBundle get tokens programmatically?

Using the standard endpoint for FOSOAuthServerBundle (with FOSUserBundle), I can retrieve an access and refresh token by providing a client_id, client_secret, user and password combination. The response looks like this: { "accessToken":…
MarkS
  • 127
  • 6
1 2 3
8 9