Invalid redirect_uri when trying to Licence app through Portal

Discussion created by cwhi095 on Jun 15, 2014
Latest reply on Mar 14, 2015 by afatahesrisa-esridist
I'm getting an exception when trying to licence an app through Portal using the OAuthView as described in the example here. The error message is "Invalid redirect_uri"

The URL I am trying to get to is the root URL for an ArcGIS Online site. I am using the client ID of an application I have created on this ArcGIS Online site. I have not set a redirect URL or anything like that. Does this error message make sense to anyone?