Giter VIP home page Giter VIP logo

Comments (11)

higitune avatar higitune commented on August 29, 2024 1

@onevcat oh so sorry for that. now I found that ID was old one... let me try update it and get back to you soon. hopefully that resolve the error ;)

from flutter_line_sdk.

onevcat avatar onevcat commented on August 29, 2024

Hi,

but that is not in the web console.

Yes. That section is not required anymore and the value will be automatically set for you based on the "iOS bundle ID" you provided. We will update the guide soon, thank you for pointing it out!

However, that setting should not be related to your issue here. The error "invalid redirect_uri value" is often due to you are not setting a correct bundle ID. Can you check and make sure the ones you set there is identical or containing the actual bundle ID for you app target?

from flutter_line_sdk.

higitune avatar higitune commented on August 29, 2024

Hi, @onevcat -san thanks for quick response.

I just double check that bundle ID is identical and plist is also configured correctly. The sample code is below.
PRODUCT_BUNDLE_IDENTIFIER is the value in iOS bundle ID on web console. and twitter login and facebook login is working.

<key>CFBundleURLTypes</key>
<array>
	<dict>
		<key>CFBundleTypeRole</key>
		<string>Editor</string>
		<key>CFBundleURLSchemes</key>
		<array>
			<string>line3rdp.$(PRODUCT_BUNDLE_IDENTIFIER)</string>
			<string>value for twitter login</string>
			<string>fb-value-for-facebook-login</string>
		</array>
	</dict>
</array>

and also let me add following this information additionally.

Simulator Screen Shot - iPhone SE (3rd generation) - 2022-04-18 at 17 21 30

if you look at the URL on this page, that is something like this. (ID and security values are masked.) the redirect_uri part looks correctly configured I think. If you find something wrong, it's very helpful. thank you.

https://access.line.me/oauth2/v2.1/authorize/consent?state=SOME_STATE_VALUE&response_type=code&sdk_ver=5.8.1&redirect_uri=line3rdp.OUR_PRODUCT_ID%3A%2F%2Fauthorize%2F&code_challenge_method=S256&client_id=CLIENT_ID&code_challenge=CODE_CHALLENGE_VALUE&scope=profile

from flutter_line_sdk.

higitune avatar higitune commented on August 29, 2024

and one more additional information. we're using same application for Web APP too. it's working as expected.
My guess is when redirect_uri for web app is registered, the redirect_uri for iOS app became inactive or something like that.

the DEEP link from redirect_uri parameter is valid too (I checked from this command and that flutter applciation was launched)
xcrun simctl openurl booted line3rdp.{OUR_PRODUCT_ID}://

from flutter_line_sdk.

onevcat avatar onevcat commented on August 29, 2024

Ummm,

That's weird. The URI seems fine and I wonder what's going on.

May I ask if this channel already published? Or is it still in "Developing" state? If it is still in developing, then you need to make sure the login user is added as at least a "Tester" to the console.

and one more additional information. we're using same application for Web APP too. it's working as expected.

Oh.. So it should be fine and not a tester thing.

the DEEP link from redirect_uri parameter is valid too

So do you mean you also set the "iOS universal link" in the developer console? If so, then you also need to call setup with the same link as the second parameter to make the two sides matching:

LineSDK.instance.setup("${your_channel_id}", "https://yourdomain.com/line-auth/").then((_) {
  print("LineSDK Prepared");
});

from flutter_line_sdk.

onevcat avatar onevcat commented on August 29, 2024

If that is not what you are experiencing, can you please let me know your channel ID in problem (as well as a timestamp when this happens)? I will try to investigate the reason in deep.

from flutter_line_sdk.

higitune avatar higitune commented on August 29, 2024

No, we don't use universal link.
channel id 1656609584
timestamp is ~24:00 yday. also it reproduced at just now

from flutter_line_sdk.

onevcat avatar onevcat commented on August 29, 2024

Thanks. I will try to see if I can find anything and let you know!

from flutter_line_sdk.

higitune avatar higitune commented on August 29, 2024

from flutter_line_sdk.

onevcat avatar onevcat commented on August 29, 2024

@higitune

We checked the log and the channel 1656609584 is not quite active today. There were several requests from the channel ID yesterday night, but none is ~24:00 yesterday, and moreover, there is no request in recent hours today.

So I suspect that can it be an issue that you entered a wrong channel ID when setting up LINE SDK (in the LineSDK.instance.setup). A mismatch of channel ID in the setup method would exactly trigger this 400 error, since our login server can detect that the expected return uri is not matching, which is recognized as a request error.

Can you make sure that you are using the same channel ID you mentioned in this thread? (Make sure there is no space in either side, for example).

If it is still not the case, it would be appreciated if you let me know an IP address when you trying to login when this error happens, and I will try to search it again in the log system.

from flutter_line_sdk.

higitune avatar higitune commented on August 29, 2024

Thanks. I confirmed that is working.
Very appreciate your kind help!

from flutter_line_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.