[Backlogmanager] [FIWARE-JIRA] (HELP-8766) [fiware-stackoverflow] FIWARE KeyRock access token request error on iOS client implementation

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Fri May 26 09:11:00 CEST 2017


     [ https://jira.fiware.org/browse/HELP-8766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez updated HELP-8766:
---------------------------------
     HD-Chapter: Security
    Description: 
Created question in FIWARE Q/A platform on 23-11-2015 at 16:11
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/33874292/fiware-keyrock-access-token-request-error-on-ios-client-implementation


+Question:+
FIWARE KeyRock access token request error on iOS client implementation

+Description:+
I'm trying to request a KeyRock access token via iOS OAuth2 implementation.

In iOS the callback url on OAuth is not a regular http:// url but is something like myapp://oauth/callback. The url for the authorization request is the following:

https://account.lab.fiware.org/oauth2/authorize/?response_type=code&client_id=123&redirect_uri=myapp://oauth/callback

After calling the url, I can login on the Fiware account, authorized my app, but instead of being redirected to my callback address myapp://oauth/callback, I always get the following error:


  Error: An error occurred when trying to obtain the authorization code.


I can't get my access token and I'm stuck on this page:



If I try to change the callback url, using a normal http:// address, everything works fine but on iOS that kind of url is unusable as callback in OAuth authentication.

What's wrong?


  was:

Created question in FIWARE Q/A platform on 23-11-2015 at 16:11
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/33874292/fiware-keyrock-access-token-request-error-on-ios-client-implementation


+Question:+
FIWARE KeyRock access token request error on iOS client implementation

+Description:+
I'm trying to request a KeyRock access token via iOS OAuth2 implementation.

In iOS the callback url on OAuth is not a regular http:// url but is something like myapp://oauth/callback. The url for the authorization request is the following:

https://account.lab.fiware.org/oauth2/authorize/?response_type=code&client_id=123&redirect_uri=myapp://oauth/callback

After calling the url, I can login on the Fiware account, authorized my app, but instead of being redirected to my callback address myapp://oauth/callback, I always get the following error:


  Error: An error occurred when trying to obtain the authorization code.


I can't get my access token and I'm stuck on this page:



If I try to change the callback url, using a normal http:// address, everything works fine but on iOS that kind of url is unusable as callback in OAuth authentication.

What's wrong?


     HD-Enabler: KeyRock

> [fiware-stackoverflow] FIWARE KeyRock access token request error on iOS client implementation
> ---------------------------------------------------------------------------------------------
>
>                 Key: HELP-8766
>                 URL: https://jira.fiware.org/browse/HELP-8766
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Alvaro Alonso
>              Labels: fiware, ios, oauth
>
> Created question in FIWARE Q/A platform on 23-11-2015 at 16:11
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/33874292/fiware-keyrock-access-token-request-error-on-ios-client-implementation
> +Question:+
> FIWARE KeyRock access token request error on iOS client implementation
> +Description:+
> I'm trying to request a KeyRock access token via iOS OAuth2 implementation.
> In iOS the callback url on OAuth is not a regular http:// url but is something like myapp://oauth/callback. The url for the authorization request is the following:
> https://account.lab.fiware.org/oauth2/authorize/?response_type=code&client_id=123&redirect_uri=myapp://oauth/callback
> After calling the url, I can login on the Fiware account, authorized my app, but instead of being redirected to my callback address myapp://oauth/callback, I always get the following error:
>   Error: An error occurred when trying to obtain the authorization code.
> I can't get my access token and I'm stuck on this page:
> If I try to change the callback url, using a normal http:// address, everything works fine but on iOS that kind of url is unusable as callback in OAuth authentication.
> What's wrong?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy