Authorisation callback issue in strava api for iOS





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am integrating strava api's in my app. I need help regarding the authorization callback domain i.e. required during the api registration so that after the authorization the device browser opens the app again for further usage. When I try to submit the myapp:// as the callback domain it gives me error (This field must be a domain, no slashes or paths). I can't seem to enter anything that is a valid domain. Because the redirect url or uri is something that app describes in its property list. Also it adds the http in the redirect uri by itself. Example when we register myapp as url scheme in strava as well as in plist file then on hitting myapp:// in the safari browser opens the app. But the strava changes this to https://www.strava.com/oauth/authorize?client_id=*****&response_type=code&redirect_uri=http://myapp&approval_prompt=force.



Why there is http:// added in the redirect uri and also why I am not able to register myapp:// as the redirect uri ?



I have checked one older example having slashes in their redirect uri. So how that example is working and registered with slashes in redirect uri?



So, Anybody please help me in solving this issue.



Thanks In Advance.










share|improve this question





























    0















    I am integrating strava api's in my app. I need help regarding the authorization callback domain i.e. required during the api registration so that after the authorization the device browser opens the app again for further usage. When I try to submit the myapp:// as the callback domain it gives me error (This field must be a domain, no slashes or paths). I can't seem to enter anything that is a valid domain. Because the redirect url or uri is something that app describes in its property list. Also it adds the http in the redirect uri by itself. Example when we register myapp as url scheme in strava as well as in plist file then on hitting myapp:// in the safari browser opens the app. But the strava changes this to https://www.strava.com/oauth/authorize?client_id=*****&response_type=code&redirect_uri=http://myapp&approval_prompt=force.



    Why there is http:// added in the redirect uri and also why I am not able to register myapp:// as the redirect uri ?



    I have checked one older example having slashes in their redirect uri. So how that example is working and registered with slashes in redirect uri?



    So, Anybody please help me in solving this issue.



    Thanks In Advance.










    share|improve this question

























      0












      0








      0








      I am integrating strava api's in my app. I need help regarding the authorization callback domain i.e. required during the api registration so that after the authorization the device browser opens the app again for further usage. When I try to submit the myapp:// as the callback domain it gives me error (This field must be a domain, no slashes or paths). I can't seem to enter anything that is a valid domain. Because the redirect url or uri is something that app describes in its property list. Also it adds the http in the redirect uri by itself. Example when we register myapp as url scheme in strava as well as in plist file then on hitting myapp:// in the safari browser opens the app. But the strava changes this to https://www.strava.com/oauth/authorize?client_id=*****&response_type=code&redirect_uri=http://myapp&approval_prompt=force.



      Why there is http:// added in the redirect uri and also why I am not able to register myapp:// as the redirect uri ?



      I have checked one older example having slashes in their redirect uri. So how that example is working and registered with slashes in redirect uri?



      So, Anybody please help me in solving this issue.



      Thanks In Advance.










      share|improve this question














      I am integrating strava api's in my app. I need help regarding the authorization callback domain i.e. required during the api registration so that after the authorization the device browser opens the app again for further usage. When I try to submit the myapp:// as the callback domain it gives me error (This field must be a domain, no slashes or paths). I can't seem to enter anything that is a valid domain. Because the redirect url or uri is something that app describes in its property list. Also it adds the http in the redirect uri by itself. Example when we register myapp as url scheme in strava as well as in plist file then on hitting myapp:// in the safari browser opens the app. But the strava changes this to https://www.strava.com/oauth/authorize?client_id=*****&response_type=code&redirect_uri=http://myapp&approval_prompt=force.



      Why there is http:// added in the redirect uri and also why I am not able to register myapp:// as the redirect uri ?



      I have checked one older example having slashes in their redirect uri. So how that example is working and registered with slashes in redirect uri?



      So, Anybody please help me in solving this issue.



      Thanks In Advance.







      ios swift strava






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 4 at 9:16









      Anshul BhathejaAnshul Bhatheja

      18512




      18512
























          1 Answer
          1






          active

          oldest

          votes


















          1














          I have contacted Strava Developer Support for the above said issue and got their reply that we can register myapp.com as authorisation callback domain in strava, myapp as url scheme in info.plist and myapp://myapp.com as the redirect uri for strava api.



          After implementing this, my app works well and performs the oauth flow as is supposed to do.



          I am posting this answer here so as to help anybody else facing the same issue.



          Thanks






          share|improve this answer


























          • Try Appz github.com/SwiftKitz/Appz

            – Mariam
            Feb 3 at 10:13






          • 1





            Thanks @Mariam, But I have already solved this problem with the given solution.

            – Anshul Bhatheja
            Feb 4 at 4:25












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54035985%2fauthorisation-callback-issue-in-strava-api-for-ios%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          I have contacted Strava Developer Support for the above said issue and got their reply that we can register myapp.com as authorisation callback domain in strava, myapp as url scheme in info.plist and myapp://myapp.com as the redirect uri for strava api.



          After implementing this, my app works well and performs the oauth flow as is supposed to do.



          I am posting this answer here so as to help anybody else facing the same issue.



          Thanks






          share|improve this answer


























          • Try Appz github.com/SwiftKitz/Appz

            – Mariam
            Feb 3 at 10:13






          • 1





            Thanks @Mariam, But I have already solved this problem with the given solution.

            – Anshul Bhatheja
            Feb 4 at 4:25
















          1














          I have contacted Strava Developer Support for the above said issue and got their reply that we can register myapp.com as authorisation callback domain in strava, myapp as url scheme in info.plist and myapp://myapp.com as the redirect uri for strava api.



          After implementing this, my app works well and performs the oauth flow as is supposed to do.



          I am posting this answer here so as to help anybody else facing the same issue.



          Thanks






          share|improve this answer


























          • Try Appz github.com/SwiftKitz/Appz

            – Mariam
            Feb 3 at 10:13






          • 1





            Thanks @Mariam, But I have already solved this problem with the given solution.

            – Anshul Bhatheja
            Feb 4 at 4:25














          1












          1








          1







          I have contacted Strava Developer Support for the above said issue and got their reply that we can register myapp.com as authorisation callback domain in strava, myapp as url scheme in info.plist and myapp://myapp.com as the redirect uri for strava api.



          After implementing this, my app works well and performs the oauth flow as is supposed to do.



          I am posting this answer here so as to help anybody else facing the same issue.



          Thanks






          share|improve this answer















          I have contacted Strava Developer Support for the above said issue and got their reply that we can register myapp.com as authorisation callback domain in strava, myapp as url scheme in info.plist and myapp://myapp.com as the redirect uri for strava api.



          After implementing this, my app works well and performs the oauth flow as is supposed to do.



          I am posting this answer here so as to help anybody else facing the same issue.



          Thanks







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 7 at 12:00

























          answered Jan 7 at 10:59









          Anshul BhathejaAnshul Bhatheja

          18512




          18512













          • Try Appz github.com/SwiftKitz/Appz

            – Mariam
            Feb 3 at 10:13






          • 1





            Thanks @Mariam, But I have already solved this problem with the given solution.

            – Anshul Bhatheja
            Feb 4 at 4:25



















          • Try Appz github.com/SwiftKitz/Appz

            – Mariam
            Feb 3 at 10:13






          • 1





            Thanks @Mariam, But I have already solved this problem with the given solution.

            – Anshul Bhatheja
            Feb 4 at 4:25

















          Try Appz github.com/SwiftKitz/Appz

          – Mariam
          Feb 3 at 10:13





          Try Appz github.com/SwiftKitz/Appz

          – Mariam
          Feb 3 at 10:13




          1




          1





          Thanks @Mariam, But I have already solved this problem with the given solution.

          – Anshul Bhatheja
          Feb 4 at 4:25





          Thanks @Mariam, But I have already solved this problem with the given solution.

          – Anshul Bhatheja
          Feb 4 at 4:25




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54035985%2fauthorisation-callback-issue-in-strava-api-for-ios%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas