Questions tagged [fosoauthserverbundle]
124 questions
3
votes
1 answer
Symfony Security: Auth with session or oauth
I have developed a REST API, there are two ways to connect to it: session and oauth.
Basically, my website will use the session mode and third-party softwares will use the oauth mode.
I managed to make make both session and oauth modes to work in…

Benjamin Leclerc
- 162
- 1
- 14
2
votes
0 answers
GOS WebSocket Bundle oAuth session sharing
I use symfony 3.3 and WebSocketBundle
for socket messaging and notification system.
Also was used FOS oAuth and FOS user bundle for auth part of application.
Question:
I want get user in Topic. I try to config session sharing...
All works fine..…

Deim Jons
- 21
- 1
2
votes
0 answers
Android Oauth + PHP (Symfony3 + FOS Oauth Server Bundle)
I'm trying to implement oauth authorization into my Android(KitKat based) app.
I've prepared own oauth2 server,based on php (Symfony3 Framework + FOS Oauth Server Bundle).
Now I need to make authorization in android app.
I was wondering on internet…

ICS_Vortex
- 41
- 4
2
votes
1 answer
FOSOAuthServerBundle, Authorization header doesn't work but access_token in query works
I'm using the authorization_code grant type. I've already created a client, the auth_code and then created access and refresh tokens, all successfully.
Now I try to use the access_token and here comes the problem. If I put it as a request/query…

MigMolRod
- 388
- 1
- 4
- 12
2
votes
1 answer
Symfony3 FOSOAuthServerBundle and Facebook or Google login
I have created an API that uses the FOSUserBundle and the FOSOAuthServerBundle for user accounts and Authorization.
Is it possible to add, login via facebook or google, functionality using the FOSOAuthServerBundle?
I have seen people mentioning…

Shawn Northrop
- 5,826
- 6
- 42
- 80
2
votes
1 answer
FOSOauthServerBundle __constructor error
I've been working a RESTful API for a while now in Symfony 2. Everything seemed to be OK until last night when I created new entity classes. I'm getting an error when trying to request an access token. I get the following error message:
Catchable…

Stalin Kay
- 577
- 8
- 18
2
votes
2 answers
How to setup HWIOAuthBundle with FOSOAuthServerBundle
Trying to use both bundles with latest Symfony (V:2.7.2).
FOSOauth is set and works fine, but adding HWIOAuthBundle isn't so trivial. Following the instruction in native Read.me brought me to this:
The service "hwi_oauth.security.oauth_utils" has…

Roman Vasylovich
- 21
- 5
2
votes
2 answers
How to access my new Symfony API
I've managed to combine FOSUserBundle, FOSOAuthServerBundle, and FOSRestBundle.
I've created a client, and I've created a UserController. I've got my first route
http://domain.remote/api/users [ GET list users ].
OAuth is working, I get a "access…

Theodore Enderby
- 622
- 1
- 6
- 19
2
votes
2 answers
Symfony2 - FOSOauthServerBundle - Firewall configuration - Route Whitelist
My goal is to have all routes under the firewall protected API except some.
I have firewall configuration like this:
security:
acl:
connection: default
providers:
fos_userbundle:
id:…

Angelo Giuffredi
- 923
- 3
- 13
- 26
2
votes
1 answer
The service “security.authentication.manager” has a dependency on a non-existent service “security.user.provider.concrete.fos_userbundle”
I am having quite a frustrating problem and don't even know where to troubleshoot because Symfony is not mentioning the offender.
I need to build an OAUTH server to authenticate mobile users on an App that already had Sonata User Admin/ FOSUser…

Masinde Muliro
- 1,175
- 3
- 24
- 38
2
votes
0 answers
OAuth2 Password Flow with Android and Symfony2 (FOSOAuthServerBundle)
I'm trying to allow users to access a RESTful API using FOSOAuthServerBundle. I need my users to be able to access the API using Android. I require said users to use a Password flow to connect to the API.
Currently, if I were to use a browser with…

ABCaesar
- 112
- 2
- 9
2
votes
1 answer
Using 'forward' with FOSOAuthServerBundle TokenController
I'm defining a new Controller to act as a proxy between a JS app and the OAuth server. The code is below:
namespace Acme\SecurityBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use…

Silverspur
- 891
- 1
- 12
- 33
2
votes
0 answers
How to handle session user and user with acceess_token at the same time?
There was the same question 1 year ago but provided solution is not correct and doesn't work.
I have FOSUSerBUndle + FOSRestBundle + FOSOauthServerBundle and have some resource controllers under /api path that want to protect.
I have usual users…

borN_free
- 1,385
- 11
- 19
2
votes
1 answer
How to connect a Javascript front end using Facebook Login and a PHP back end through OAuth 2.0?
I have the following elements:
A PHP back-end providing a RESTful API secured with OAuth (FOSOAuthServerBundle with Symfony 2)
A Javascript front-end (AngularJS), i.e. an OAuth client.
My goal is to provide users with an authentification page in…

Silverspur
- 891
- 1
- 12
- 33
2
votes
0 answers
Javascript Client for FOSOAuthServerBundle
I have some difficulties to get the authentification workflow working. I tried JSO https://github.com/andreassolberg/jso/blob/master/README-getting-started.md
here is my test code (ignore the login fields)

jeff
- 1,169
- 1
- 19
- 44