Questions tagged [fosoauthserverbundle]
124 questions
2
votes
1 answer
RESTFul OAuth with FOSOAuthServer / FOSRest & FOSUser
I'm having difficulties to fully understand the concept of the client creation explained here.
I followed the post to set up the OAuthBundle, and tried to make the changes needed to comply with FOSUser. Though I'm not sure it's perfect.
My…

Romain
- 3,586
- 7
- 31
- 52
2
votes
1 answer
Symfony2 OAuth keeps giving me a login page when a token is provided
I have setup an app with:
FriendsOfSymfony/FOSUserBundle
FriendsOfSymfony/FOSOAuthServerBundle
FriendsOfSymfony/FOSRestBundle
I have successfully created a client and can get an access token using a url like…

mike
- 1,583
- 1
- 19
- 35
2
votes
1 answer
FOSOAuthServerBundle and FOSUserbundle
I try to use FOSUserBundle and FOSOAuthServerBundle to secure my symfony2 Application.
I followed documentation, created a client and so an.
But when I call /oauth/v2/auth I get a Route not found error:
No route found for "GET…

user3460622
- 165
- 1
- 11
2
votes
2 answers
How to FOSOAuthServerBundle "Logout" or, better, Revoke Token
I am using Symfony2.0 and FOSOAuthServerBundle, which implements OAuth2, for managing my APPs clients access to my PHP server.
Everything works perfectly, any token generation, refreshing, etc, etc...
One of the gotten effects is that anytime I…

ElPiter
- 4,046
- 9
- 51
- 80
2
votes
2 answers
Get current client on controller using FOSOAuthServerBundle
Is there an easy way to get the current client on a controller using FOSOAuthServerBundle on Symfony?
I have some properties on my client entity and want to read them in a controller but i can't find the way to get the current client.
I've only…

Noquepoaqui
- 395
- 3
- 11
2
votes
0 answers
How to create prototype for REST api in symfony 2
Hi there for implementing the symfony2 base REST api bundle i have installed the following bundle.
FosOauth server bundle for Oauth2.0 base authentication
FosRest bundle for REST api creation.
now can any body suggest me how can i create…

user3271376
- 21
- 1
2
votes
1 answer
How do I handle OAuth refresh token?
When I authorize on my OAuth server it returns me access / refresh tokens:
access_token: "ZjJlMGM2MDcxNDg5MDQ1NzA4ZjkyNzRiOTIwM2E5MWI4N2M0MWU0ZD..."
expires_in: 3600
refresh_token: "NWZjMzQ3YjNjMmY5YTEzYzMxMDYzNGVhNzRiNjAxZTdmZTdjNzE3z..."
scope:…

pleerock
- 18,322
- 16
- 103
- 128
2
votes
2 answers
error while integrating FOSUserBundle with FOSOAuthServer
I am trying to integrate FOSUserBundle with FOSOAuthServerBundle to proect my RESTFul APIs but i am getting following error while accessing login page , i am quite new to it so i dont know how to get rid off this error.
here i am trying to open a…

Hunt
- 8,215
- 28
- 116
- 256
1
vote
0 answers
Symfony isGranted("ROLE_ADMIN") not working properly
I have a security.yaml like this:
api_documentary:
pattern: ^/api/v1/documentary
fos_oauth: true
stateless: false
methods: [POST, PUT, DELETE]
- { path: ^/api/v1/documentary,…

JonnyD
- 73
- 2
- 9
1
vote
1 answer
Cannot override FOSOAuthServerBundle tokenAction
I am using the following packages:
"friendsofsymfony/oauth-server-bundle": "^1.6",
"friendsofsymfony/rest-bundle": "^2.5",
"friendsofsymfony/user-bundle": "^2.1",
"symfony/framework-bundle": "4.2.*",
"symfony/http-foundation":…
user10560159
1
vote
0 answers
What is the optimal flow for FOS OAuth server bundle in real life? OAuth 2 and Symfony 4
I’ve successfully implemented my FOS OAuth Server bundle from the official repo to build an API with Rest bundle and Oauth. I”ve also followed these excellent documentation to implement it with my…

Miles M.
- 4,089
- 12
- 62
- 108
1
vote
0 answers
How to revoke FOSOAuthServerBundle access and refresh tokens?
What is the best / correct way to "disconnect" a OAuth connection using the FOSOAuthServerBundle? I know that OAuth is stateless and that "disconnecting" means to delete / revoke the users access and refresh tokens to prevent further requests.
So…

Andrei Herford
- 17,570
- 19
- 91
- 225
1
vote
0 answers
FOSOAuthServerBundle + Amazon Alexa: How to manually authenticate user with Access Token?
In short: How can I manually authenticate a users with a given access token?
The long story:
An Amazon Alexa Skill should access user data within a Symfony 3.4 based web services.
The web services uses FOSOAuthServerBundle to handle the OAauth…

Andrei Herford
- 17,570
- 19
- 91
- 225
1
vote
1 answer
Generate Token on postPersist with FOSOAuthServerBundle
I'm trying to create a token on registration.
I use FosUserBundle as authenticator and FOSOAuthServerBundle for API.
Everything works well when i generate a token manually. But i want to generate it automatically after a successful registration. So…

Puya Sarmidani
- 1,226
- 9
- 26
1
vote
1 answer
fos_oauth_server.client_manager.default is not loaded
I'm trying since last week to get the FOS Auth Server Bundle working with
Symfony4. If I want to use the create client Command which I created this error message appears.
The "fos_oauth_server.client_manager.default" service or alias has been…

Daniel Pfeil
- 83
- 9