Questions tagged [fosoauthserverbundle]

124 questions
1
vote
0 answers

Unrecognized field with Symfony 3.4 and flex

I just started a new Symfony 3.4 project with Flex. I followed the official documentation of FOSOAuthBundle but when I want to create a token /oauth/v2/token I have this error:" Unrecognized field: randomId " Here are my configuration…
Khalezis
  • 109
  • 1
  • 1
  • 6
1
vote
1 answer

User authentication flow with FOSUserBundle + FOSOAuthServerBundle

I have been working on setting up the FOSUserBundle/RestBundle/OAuthServerBundle trio to create a headless back end that I can then place a separate front end on top of, and eventually expand to mobile, and possible third party API access. I have…
1
vote
0 answers

Custom WebserviceUserProvider and FOSAuthServerBundle

I'm using an SF2.8 API based on this tutorial https://gist.github.com/tjamps/11d617a4b318d65ca583 except i'm using MongoDB. When a FOSUser (created on my DB A with oAuth tables) is connected to my API, i don't have all infos what i need because…
1
vote
1 answer

Doctrine doesn't map fields from FOSUserBundle and FOSOAuthServerBundle

I am using Symfony 2.8, FOSUserBundle 1.3 and FOSOAuthServerBundle 1.5 For all of the class needed to those Bundles to work, I ended up with doctrine not updating my schema properly. I mean it doesn't take into account the fields from the Base…
1
vote
1 answer

Bundle FOSOAuthServerBundle setup error

I have installed FOSOauthServerBundle but it seems that the config is wrong with the csrf_provider that I do not know how to resolve it, as I copied the code from…
1
vote
0 answers

Symfony Oauth2 access_denied when using token

I've followed this gist go add Oauth to my Symfony Restful API, the issue is that after I get a token from the server, I can't make it work, just get 401s, could anyone help me? The project (except small changes in the last test) is on github. Btw…
SkarXa
  • 1,184
  • 1
  • 12
  • 24
1
vote
1 answer

Symfony FOS OAuth with custom User

How is it possible to implement an OAuth server based on FOSOAuthServerBundle without using FOSUserBundle? My user class starts like his:
Wanderson Silva
  • 1,179
  • 1
  • 17
  • 35
1
vote
1 answer

What HWIOAuthBundle is expecting from the infos_url?

I am trying to config my oauth2 server with HWIOAuthBundle and I would like to have some clarifications on what HWIOAuthBundle is expecting as response to config correctly infos_url? I guess it is expecting a json file. So, what are its fields? If…
Amine Jallouli
  • 3,919
  • 8
  • 36
  • 73
1
vote
1 answer

why using FOSOAuthServerBundle if FOSUserBundle enough for the security of a RESTful API?

I have a RESTful API (based on FOSRestBundle) consuming an angularJS application that I want to secure. For that I simply used FOSUserBundle which worked as I expected. In fact, the calls to the RESTful API get connected if the I get connected…
Amine Jallouli
  • 3,919
  • 8
  • 36
  • 73
1
vote
0 answers

Error: Call to a member function getUser() on null" at AuthorizeController.php line 58

I am trying to configure FOSOAuthServerBundle with FOSUserBundle using the documentation of FOSOAuthServerBundle. This is the config: config.yml fos_user: db_driver: orm firewall_name: oauth_token #main user_class:…
Amine Jallouli
  • 3,919
  • 8
  • 36
  • 73
1
vote
1 answer

FosOauthServerBundle Propel BaseClient not found

I'm using doctrine orm but somehow I get an error that the propel BaseClient is not found (a class usually autogenerated by propel). Either it's a bug or I'm doing something wrong? fos_oauth_server: db_driver: orm client_class: …
tmas
  • 422
  • 4
  • 15
1
vote
2 answers

FOSOAuthServerBundle - can I set unlimited token lifetime for password grant type?

I am using the password grant type. By nature of this grant type, the Client's are fully trusted by the API, and in my case, they share the same owner. Each Client will be added to the API by the API owner, by manually posting to the oauth/v2/token…
Alex
  • 1,565
  • 2
  • 9
  • 13
1
vote
1 answer

Symfony2 + FOS OAuth bundle testing without authentication

I have application which base on logging users by FOSOAuthServerBundle and I want to test actions in this application. So... In Sf2 are special config file for testing environment, config_test.yml and I've put this code: security: firewalls: …
Kamil P
  • 782
  • 1
  • 12
  • 29
1
vote
1 answer

Symfony2 FOSOAuthServerBundle OAuth authentication without login form

I am using the FOSOAuthServerBundle for my API. Since my API is called by a mobile application I do not want to use a login form for the authentication. Unfortunately the documentation says to configure the authentication like this …
user4911648
1
vote
1 answer

FOSAuthBundle Register Event onPreAuthorizationProcess never called

I would like to set up event listener on the OAuth in order to log connection failures, and connections. I registered an event listener in services.yml, defined the EventListener/OAuthEventListener class with a method to trigger when the event is…
1 2 3
8 9