• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

mobile origin url

Scheduled Pinned Locked Moved
Q&A
4
13
3.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    harish_reddy
    last edited by 22 Sept 2021, 15:31

    Hi

    I am trying to add android-app://com.example
    as
    Authorized request origin URL
    in application's OAuth settings

    It is rejecting the value with error URL must start with http

    Is this a bug?

    1 Reply Last reply Reply Quote 0
    • J
      joshua
      last edited by 13 Oct 2021, 21:11

      @harish_reddy

      Is this still an open item of concern for you? I can review it further if need be.

      If you believe it to be a bug you can also log a bug request
      (https://github.com/FusionAuth/fusionauth-issues/issues/new/choose)

      Thanks,
      Josh

      H 1 Reply Last reply 16 Oct 2021, 06:21 Reply Quote 0
      • H
        harish_reddy @joshua
        last edited by 16 Oct 2021, 06:21

        @joshua

        Done

        https://github.com/FusionAuth/fusionauth-issues/issues/1443

        1 Reply Last reply Reply Quote 0
        • D
          dan
          last edited by 16 Oct 2021, 15:18

          Thanks for filing this.

          Can you provide a few more details (on the bug or here) to talk about why you need to set the origin URL in your mobile app?

          Typically you need to set the Authorized redirect URL, but this tutorial, for example, doesn't set the origin URL: https://fusionauth.io/blog/2020/08/19/securing-react-native-with-oauth/

          From https://fusionauth.io/docs/v1/tech/core-concepts/applications/

          This optional configuration allows you to restrict the origin of an OAuth2 / OpenID Connect grant request. If no origins are registered for this Application, all origins are allowed.

          By default FusionAuth will add the X-Frame-Options: DENY HTTP response header to the login pages to keep these pages from being rendered in an iframe. If the request comes from an authorized origin, however, FusionAuth will not add this header to the response. To load FusionAuth hosted login pages in an iframe, you will need to add the request origin to this configuration

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          • H
            harish_reddy
            last edited by 18 Oct 2021, 09:57

            Authorised redirect URL config has no issues.

            I added "https://example.com" as authorise origin url for security. Then I noticed traffic from android app is getting blocked with

            "android-app://com.example" is not authorised origin

            1 Reply Last reply Reply Quote 0
            • D
              dan
              last edited by 18 Oct 2021, 21:16

              Where are you seeing that error message? Can you please provide repro steps?

              Thanks!

              --
              FusionAuth - Auth for devs, built by devs.
              https://fusionauth.io

              1 Reply Last reply Reply Quote 0
              • H
                harish_reddy
                last edited by 19 Oct 2021, 08:02

                I provided steps to reproduce in the github issue : https://github.com/FusionAuth/fusionauth-issues/issues/1443

                1 Reply Last reply Reply Quote 0
                • D
                  dan
                  last edited by 19 Oct 2021, 11:55

                  @harish_reddy

                  Thanks, I saw the steps to reproduce in the administrative user interface.

                  I am sorry for being unclear. I was looking for steps to reproduce in the android application.

                  In particular, I'm unsure where/how you are seeing this behavior:

                  Then I noticed traffic from android app is getting blocked with

                  It sounds like:

                  • you have an application in FusionAuth.
                  • It was working fine with both a mobile app and a web application
                  • You then added https://example.com to the application config's authorized origin URL.
                  • The web application continues to work fine
                  • The android application now has issues

                  Is that correct? Or am I missing something?

                  If it is correct, I want to know more about those issues.

                  Are you:

                  • getting error messages
                  • being prevented from logging in using the android app
                  • some other behavior

                  Also, is the android app a webview of the hosted login pages?

                  Thanks.

                  --
                  FusionAuth - Auth for devs, built by devs.
                  https://fusionauth.io

                  1 Reply Last reply Reply Quote 0
                  • H
                    harish_reddy
                    last edited by 19 Oct 2021, 15:21

                    Yes, that's correct.

                    In android app, we are using oidc react-native library.
                    The screen gets stuck after clicking login button.
                    Expected : Open fusionauth login page in in-app browser
                    Actual:
                    There is an error message
                    [Error: Invalid origin uri android-app://com.example/]

                    1 Reply Last reply Reply Quote 0
                    • D
                      dan
                      last edited by 20 Oct 2021, 23:11

                      Hi @harish_reddy ,

                      I didn't want this to get lost (I don't check the forum every day) so asked our support team to open a ticket.

                      Thanks!

                      --
                      FusionAuth - Auth for devs, built by devs.
                      https://fusionauth.io

                      1 Reply Last reply Reply Quote 0
                      • A
                        alickabrook1
                        last edited by 28 Aug 2023, 14:18

                        Can you provide a few more details (on the bug or here) to talk about why you need to set the origin URL in your mobile app?

                        A 1 Reply Last reply 29 Aug 2023, 09:14 Reply Quote 0
                        • A
                          alickabrook1 @alickabrook1
                          last edited by 29 Aug 2023, 09:14

                          @alickabrook1 said in mobile origin url:

                          Can you provide a few more details (on the bug or here) to talk about why you need to set the origin URL in your mobile app?

                          I didn't want this to get lost (I don't check the forum every day) so asked our support team to open a ticket.

                          H 1 Reply Last reply 29 Aug 2023, 21:14 Reply Quote 1
                          • H
                            harish_reddy @alickabrook1
                            last edited by 29 Aug 2023, 21:14

                            @alickabrook1
                            I was not setting origin URL in mobile app.

                            I was setting it in fusionauth config.

                            Shared screenshot in https://github.com/FusionAuth/fusionauth-issues/issues/1443

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post