Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 forbidden #89

Open
OussemaZaier opened this issue Nov 18, 2023 · 5 comments
Open

403 forbidden #89

OussemaZaier opened this issue Nov 18, 2023 · 5 comments

Comments

@OussemaZaier
Copy link

OussemaZaier commented Nov 18, 2023

Is it a security issue?

No
If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to dl_oss_dev@linecorp.com.

What did you do?

Please describe what you did before you encounter the issue.
I set up the config correctly, and re-did it again. The app was working one week ago but now when ii press login with line button in my app it takes me to line app but with forbidden 403 screen.

What did you expect?

Get the token from the user.

What happened actually?

I got a 403 page

Your environment?

Dart SDK version: 3.1.3
flutter_line_sdk: ^2.3.6

Sample project

LineSDK.instance.setup(dotEnv.LineID).then((_) {
    print("LineSDK Prepared");
  });
  
  try {
      final result =
          await LineSDK.instance.login(scopes: ['profile', 'email', 'openid']);

      final userId = result.userProfile!.userId;
      
      return userId;
    } catch (e) {
      return Future.error('error');
    }
@onevcat
Copy link
Member

onevcat commented Nov 20, 2023

@OussemaZaier

Hi, thanks for reporting this.

May I know does this issue only happen on iOS or Android, or does it happen on both?

Usually, if you are still under development and the app you registered in LINE Developer Console is not yet published, you will need to use the admin account of that app or use an explicitly added tester account to perform the login test. In this case, the 403 error means the account you are using is not allowed to login to this LINE channel. Can you try to check that?

@OussemaZaier
Copy link
Author

OussemaZaier commented Nov 20, 2023 via email

@onevcat
Copy link
Member

onevcat commented Nov 20, 2023

Ummm, that does not sound good.

I just had a try with the flutter SDK and our example app, and seems every thing goes fine. So it might be a channel-specified setting at last.

May I know your Channel ID? I can ask for a detailed investigation to see what can be wrong.

@OussemaZaier
Copy link
Author

yes sure
2001114405

@onevcat
Copy link
Member

onevcat commented Nov 21, 2023

@OussemaZaier

We checked the log and seems your channel works fine.

There were indeed some 403 events left (although I am not sure if these were login attempts of yours) and the reason seems to be the user is under penalty since 2023/10/31 (sorry but I cannot provide any more information about the penalty).

Can you try to change an account to perform the log in and see what can happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants