Stream: implementers
Topic: Oauth2 Authorization Code
abhishek sharma (Mar 19 2019 at 06:35):
Authorization Code Grant (Browser Flow) redirects to login page, return Location in the response, but this doesn't have a "code".
can any one suggest.......
Vishak OS (Mar 20 2019 at 18:45):
I think the question is little broad. If you could explain it with few more details that might help to get the correct answer.
The Authorization Code is provided after the user login. Once the Authorization Code is received, the Client App to request for the Access Token via back channel to the Authorization Server.
Q1. Who's providing the Authorization?
abhishek sharma (Mar 25 2019 at 12:30):
Thank you for response this Question is about Authorization code for Smart On Fhir implementation ... http://hl7.org/fhir/smart-app-launch/#step-1-app-asks-for-authorization
Michele Mottini (Mar 25 2019 at 13:19):
The authorization code is in the redirect URL
abhishek sharma (Mar 25 2019 at 13:48):
@Michele MottiniThank you, Already I gone through the given that link ...but when i perform first call (get operation ) using UAA server i am not getting code and redirect_uri.
Michele Mottini (Mar 25 2019 at 13:58):
You should not do a GET, you must redirect to the authorization page
Yunwei Wang (Mar 25 2019 at 16:11):
what is your request URL?
abhishek sharma (Mar 26 2019 at 04:54):
@Yunwei Wang I am using postman ,This is my request UTL:- http://localhost:8080/uaa/oauth/authorize?response_type=code&client_id=clientId
Yunwei Wang (Mar 26 2019 at 12:54):
To launch smart, you need to have more parameters. Check the document you posted and provide value for missing parameters in your URL.
abhishek sharma (Mar 27 2019 at 06:11):
@Yunwei Wang Thank you, I used this URL
http://localhost/oauth/authorizeresponse_type=code&client_id=clientId&scope=scima.read same error coming ,but In Authorization Code Grant already mention another parameter is Optional........
Yunwei Wang (Mar 27 2019 at 13:50):
Your URL is not correct: redirect_url, state and auth are not present, scope value is not correct, missing ? between authorize and response_type.
Last updated: Apr 12 2022 at 19:14 UTC