You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently migrate our kong to the 2.0.2. The payload of creation of an oauth application has changed now we use redirect_uris instead of redirect_uri
Here is an example of my command curl --location --request POST 'http://localhost:8001/consumers/thefosk/oauth2/' \ --header 'Content-Type: application/json' \ --data-raw '{ "name": "Hello World App", "redirect_uris": ["http://google.com", "https://google.com", "https://facebook.com"] }'
So my question is why now we can put multiple redirect_uris ? Have you some use cases to use this with multiple redirect_uris ?
I made some tests to see if the response of this call curl --location --request POST 'https://localhost:8443/mock/oauth2/authorize' \ --header 'Content-Type: application/json' \ --header 'Host: mockbin.org' \ --data-raw '{ "response_type": "code", "provision_key": "QIN4ObxGBkEwOaS1VcemOzlKM1Mn8s9f", "client_id": "fe0CqIvtpSvZNIR1IoUGoMIiOIKHBOHP", "scope": "email", "authenticated_userid": "userid123" }'
can differ but it always return the first redirect uri of my previous redirect_uris array.
This discussion was converted from issue #5663 on December 27, 2021 09:11.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I currently migrate our kong to the 2.0.2. The payload of creation of an oauth application has changed now we use redirect_uris instead of redirect_uri
Here is an example of my command
curl --location --request POST 'http://localhost:8001/consumers/thefosk/oauth2/' \ --header 'Content-Type: application/json' \ --data-raw '{ "name": "Hello World App", "redirect_uris": ["http://google.com", "https://google.com", "https://facebook.com"] }'
So my question is why now we can put multiple redirect_uris ? Have you some use cases to use this with multiple redirect_uris ?
I made some tests to see if the response of this call
curl --location --request POST 'https://localhost:8443/mock/oauth2/authorize' \ --header 'Content-Type: application/json' \ --header 'Host: mockbin.org' \ --data-raw '{ "response_type": "code", "provision_key": "QIN4ObxGBkEwOaS1VcemOzlKM1Mn8s9f", "client_id": "fe0CqIvtpSvZNIR1IoUGoMIiOIKHBOHP", "scope": "email", "authenticated_userid": "userid123" }'
can differ but it always return the first redirect uri of my previous redirect_uris array.
Beta Was this translation helpful? Give feedback.
All reactions