Questions tagged [fosoauthserverbundle]

124 questions
1
vote
0 answers

Scope validation with FOSOAuthServerBundle

I'm using FOSOAuthServerBundle with Symfony 2.7. I would like to use scopes to differenciate two types of clients : scope_default : the client can only access the authenticated user information scope_master : the client can read everything I added…
David DS
  • 11
  • 3
1
vote
0 answers

PHP: How to use access_token generated by FOSOAuthServerBundle?

I'm trying to create REST API application with token-based authentication. Calling /ouath2/v2/token?client_id=CLIENT_ID&client_secret=CLIENT_SECRET&grant_type=client_credentials returns access_token, it's ok. However, when I'm trying to use it in…
igoodwin
  • 41
  • 2
  • 6
1
vote
1 answer

How to set provider to oauth token

I've set up OAuth [ using FOSOauthServerBudle ]. I'm working on setting up a password type flow. I can get an access token with client type, but using password type I get an error. Error: Call to a member function loadUserByUsername() on a…
Theodore Enderby
  • 622
  • 1
  • 6
  • 19
1
vote
1 answer

OAuth2 server with an external user source

I'm building an OAuth2 server with the great FOSOAuthServerBundle. My Symfony app authentifies users coming from another source (actually another server). I have created a custom UserProvider which works fine with the default Symfony security layer.…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
1
vote
0 answers

FOSOAuthServerBundle configuration issue

I am building an app with angularjs frontend and symfony backend with the help of FOSOAuthServerBundle and FOSUserBundles for security. Registration works fine but logging back in has an issue. When you provide your username/ password,…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
1
vote
1 answer

Single Sign On using OAuth 2.0

I'm developing an API which uses oauth2 for authenticating users. The requirement is to develop a single sign on system for 3 different web applications. Lets take this scenario: A user logs in to one of the application (lets say application1).…
Webghost
  • 933
  • 2
  • 7
  • 18
1
vote
0 answers

Protect user credentials FOSOauthServerBundle password grant

I'm integrating FOSOAuthServerBundle to handle login from an angular front-end. I have made a client with grant-type password. So my request looks…
jsprds
  • 67
  • 2
  • 9
1
vote
1 answer

FOS\OAuthServerBundle unrecognized field error

In Symfony2 I'm trying to implement FOS\OAuthServerBundle, but am getting a weird error. After following the guide here and also the official guide on GitHub, I'm met with an error that says: Unrecognized field: randomId 500 Internal Server Error -…
darkhorizon
  • 530
  • 6
  • 12
1
vote
0 answers

FOSOAuthServer : Not able to retrieve access token in api while using HWIOAUTHBUNDLE

While Using FOSOAuthServerBundle as OAuthServer and HWIOAuthBundle as OAuth Client, these both application have FOSUSerBundle integration. I am facing issue in retrieving access token, which will use in sending user response to client…
1
vote
1 answer

user_id not being set in the access_token table in FOSOAuthBundle

I'm using FOSOAuthBundle with FOSUserBundle for an API which is used by mobile apps etc. I'm trying to access some user profile information using the access token to find the users details, however the user_id isn't being set.
Ewan Valentine
  • 3,741
  • 7
  • 43
  • 68
1
vote
1 answer

Symfony2 FOSOAuthServerBundle authenticated but anonymous

I'm trying to use FOSOAuthServerBundle. From my ios application, I correctly get the token from /oauth/v2/token, I can see in my database the entry in AccessToken and RefreshToken with the correct user_id. Opening the _profile, I can see I'm…
Bagbyte
  • 845
  • 2
  • 18
  • 34
1
vote
0 answers

FOSOAuthServerBundle token authentication fail

I'm developing a website with Symfony2 which contains an API to access datas from the mobile app. I use FOSUserBundle for authentication on website, FOSRestBundle & FOSOAuthServerBundle for the API. I followed the tutorials on…
1
vote
1 answer

Limit access to routes with the FOSOAuthServerBundle

I have created a REST API, i'm actually trying to secure it with the FOSOAuthServerBundle. I created the route newclient to generate new client, now i would like to allow only the 'admin' to access to this url. I guess it's possible to do this with…
Xavier
  • 3,919
  • 3
  • 27
  • 55
1
vote
1 answer

OAuthServer and third Party OAuth Provider

I am currently changing my plain Symfony2 WebApplication to an Ember.js Frontend with an REST Api powered by S2 Backend. In my Old solution I had FOSUserbundle for regular registration / login etc. and HWIOAuthBundle for Facebook login. Now I am…
1
vote
0 answers

Symfony 2 - FOSOAuthServerBundle - can we authorize manually?

I'm trying to use FOSOAuthServerBundle. It works pretty well but I try to make it works in API... When I register a new user I create a new client and I would like to give him authorization directly. The request of the access_token will be done…
manonthemoon
  • 2,611
  • 8
  • 26
  • 40
1 2 3
8 9