GRESB / api-docs

http://gresb.github.io/api-docs/
3 stars 0 forks source link

Authorization request problem #28

Closed NehalJ closed 8 years ago

NehalJ commented 8 years ago

Hi,

I am facing problem in step 1 request Authorization. As per the GRESB API document, if user is not already signed into their GRESB account they will be probpted to sign in. Once signed in, the user will be shown an authotization request with the option to 'Authorize' or 'Deny' application access.

In my case, if user not logged in to the GRESB account, sign in prompt is coming (As shown below in first picture) but once user signed in after that authorization request to 'Authorize' or 'Deny' application access is not coming but gives 'An error has occurred'

I am using c# and asp.net 4.0 MVC to connect to the GRESB using below URL.

https://api-sandbox.gresb.com/oauth/authorize?client_id=ownClientId&redirect_uri=OwnRedirectURI&response_type=code&scope=edit_assets

I am redirecting to above url using window.location.href in JavaScript and after that below screen tosign in comes.(Attachment 1)

image

Once I will put credential and click on login after that below screen comes instead of 'Authorize' or 'Deny'

image

Appreciate your help

Regards,

NehalJ commented 8 years ago

I am still waiting for the response for the above mentioned problem.

amichal commented 8 years ago

I managed to reproduce and fix this problem today. It looks like a change we made to the login flow at the end of the 2014 survey period broke the work flow of authorizing a new API application when the user was not yet logged in. I'm deploying a fix now and will add a regression test to protect against this in the future