oauth2-bundle
oauth2-bundle copied to clipboard
I can not get the "Сode"
Hi,
Symfony 4.3
I am testing oauth2 on my local machine. When requesting a code, an error occurs.
Why the Doctrine Makes an Invalid Request?
Terminal:
Mysql:
Postman:
Hi Marat,
Check if this identifier exist on client table on your data base.
El mar., 15 de oct. de 2019 a la(s) 10:05, Marat ([email protected]) escribió:
Hi, Symfony 4.3 I am testing oauth2 on my local machine. When requesting a code, an error occurs. Why the Doctrine Makes an Invalid Request? I still can not understand... Terminal: [image: oauth] https://user-images.githubusercontent.com/45456471/66832120-e2f3b780-ef61-11e9-84cc-dfbb761611c4.png Mysql: [image: oauth2] https://user-images.githubusercontent.com/45456471/66832146-f30b9700-ef61-11e9-9a6f-f4a6bc94951b.png Postman: [image: oauth3] https://user-images.githubusercontent.com/45456471/66832173-0454a380-ef62-11e9-9c77-986f57b57559.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trikoder/oauth2-bundle/issues/110?email_source=notifications&email_token=AAHACQQW5E6XY74W5XLJQ53QOW5YTA5CNFSM4JA4KACKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HR3XX3Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHACQU3YCVKQL3UJAKLSDTQOW5YTANCNFSM4JA4KACA .
Sorry I didnt see the image capture of your mysql.
So ... You must first obtain the code by passing these mandatory parameters, except the last one. Client_id and redirect_uri must match with data in your client table. I advise you to add redirect uri in your table and the request request. This documentation of the auth_code flow should help : https://oauth2.thephpleague.com/authorization-server/auth-code-grant/
- response_type with the value code
- client_id with the client identifier
- redirect_uri with the client redirect URI.
- scope a space delimited list of scopes
- state with a CSRF https://en.wikipedia.org/wiki/Cross-site_request_forgery token. This parameter is optional but highly recommended. You should store the value of the CSRF token in the user’s session to be validated when they return.
El mar., 15 de oct. de 2019 a la(s) 11:26, sebardo ( [email protected]) escribió:
Hi Marat,
Check if this identifier exist on client table on your data base.
El mar., 15 de oct. de 2019 a la(s) 10:05, Marat ([email protected]) escribió:
Hi, Symfony 4.3 I am testing oauth2 on my local machine. When requesting a code, an error occurs. Why the Doctrine Makes an Invalid Request? I still can not understand... Terminal: [image: oauth] https://user-images.githubusercontent.com/45456471/66832120-e2f3b780-ef61-11e9-84cc-dfbb761611c4.png Mysql: [image: oauth2] https://user-images.githubusercontent.com/45456471/66832146-f30b9700-ef61-11e9-9a6f-f4a6bc94951b.png Postman: [image: oauth3] https://user-images.githubusercontent.com/45456471/66832173-0454a380-ef62-11e9-9c77-986f57b57559.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trikoder/oauth2-bundle/issues/110?email_source=notifications&email_token=AAHACQQW5E6XY74W5XLJQ53QOW5YTA5CNFSM4JA4KACKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HR3XX3Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHACQU3YCVKQL3UJAKLSDTQOW5YTANCNFSM4JA4KACA .
Sorry I didnt see the image capture of your mysql. So ... You must first obtain the code by passing these mandatory parameters, except the last one. Client_id and redirect_uri must match with data in your client table. I advise you to add redirect uri in your table and the request request. This documentation of the auth_code flow should help : https://oauth2.thephpleague.com/authorization-server/auth-code-grant/ - response_type with the value code - client_id with the client identifier - redirect_uri with the client redirect URI. - scope a space delimited list of scopes - state with a CSRF https://en.wikipedia.org/wiki/Cross-site_request_forgery token. This parameter is optional but highly recommended. You should store the value of the CSRF token in the user’s session to be validated when they return. El mar., 15 de oct. de 2019 a la(s) 11:26, sebardo ( [email protected]) escribió: … Hi Marat, Check if this identifier exist on client table on your data base. El mar., 15 de oct. de 2019 a la(s) 10:05, Marat @.***) escribió: > Hi, > Symfony 4.3 > I am testing oauth2 on my local machine. When requesting a code, an error > occurs. > Why the Doctrine Makes an Invalid Request? I still can not understand... > Terminal: > [image: oauth] > https://user-images.githubusercontent.com/45456471/66832120-e2f3b780-ef61-11e9-84cc-dfbb761611c4.png > Mysql: > [image: oauth2] > https://user-images.githubusercontent.com/45456471/66832146-f30b9700-ef61-11e9-9a6f-f4a6bc94951b.png > Postman: > [image: oauth3] > https://user-images.githubusercontent.com/45456471/66832173-0454a380-ef62-11e9-9c77-986f57b57559.png > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <#110?email_source=notifications&email_token=AAHACQQW5E6XY74W5XLJQ53QOW5YTA5CNFSM4JA4KACKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HR3XX3Q>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AAHACQU3YCVKQL3UJAKLSDTQOW5YTANCNFSM4JA4KACA > . >
https://github.com/trikoder/oauth2-bundle/issues/110#issuecomment-542245488
Thank you for helping.
Another error came out:
Postmen:
Mysql:
I have the same error. Can you share it with me when you solved?
I will try if I do not forget.
I have the same error. Can you share it with me when you solved?