Giter Club home page Giter Club logo

Comments (9)

muchengl avatar muchengl commented on July 29, 2024 2

Hello,
I tried to fix this problem. Do you mean that in your project, the SDK code needs to be modified as follows to work normally?
图片 1

However, in my demo, the sdk can't work if doing this modification. So I can't repeat the problem.

I wonder, maybe I misunderstand your issue or your issue can only happen in some special situations. Could you give me some more details?
Thanks!

from casdoor-flutter-sdk.

pyxiscloud avatar pyxiscloud commented on July 29, 2024 1

Hello @muchengl
Yes, I mean that (without changing SDK code not running normally)
I think it depends on Casdoor server settings, but not sure. My casdoor server only with captcha provider.
My steps:

  1. Deploy clean casdoor (docker) + add 1 application with Sign Up only with captcha provider.
  2. Trying to test it with demo example.

from casdoor-flutter-sdk.

casbin-bot avatar casbin-bot commented on July 29, 2024

@seriouszyx @ComradeProgrammer @Resulte

from casdoor-flutter-sdk.

caoshengdong avatar caoshengdong commented on July 29, 2024

@pyxiscloud Can you provide a demo project?

from casdoor-flutter-sdk.

muchengl avatar muchengl commented on July 29, 2024

@pyxiscloud Hello,
I have set up a demo according to your steps and encountered a "cross-domain problem". Is this your problem? Or you may have encountered another error.
截屏2022-11-23 19 52 20

from casdoor-flutter-sdk.

hsluoyz avatar hsluoyz commented on July 29, 2024

@pyxiscloud can you run the Flutter example code? https://github.com/casdoor/casdoor-flutter-example

from casdoor-flutter-sdk.

pyxiscloud avatar pyxiscloud commented on July 29, 2024

no, that example not works
testing on Chrome, development mode (flutter web)

  1. I've pressed FAB button
  2. New window opens with Casdoor Login Window
  3. I 've entered as admin (admin - 123)
  4. Window was closed, but token is still "User is not logged in"

image

from casdoor-flutter-sdk.

hsluoyz avatar hsluoyz commented on July 29, 2024

@pyxiscloud did you see this? https://github.com/casdoor/casdoor-flutter-sdk#web:~:text=On%20the%20Web%20platform%20an%20endpoint%20needs%20to%20be%20created%20that%20captures%20the%20callback%20URL%20and%20sends%20it%20to%20the%20application%20using%20the%20JavaScript%20postMessage()%20method.

How did you setup that callback endpoint? Can you provide the code?

from casdoor-flutter-sdk.

hsluoyz avatar hsluoyz commented on July 29, 2024

The example code: https://github.com/casdoor/casdoor-flutter-example works. So don't know why the issue owner doesn't work.

Closed as stale.

from casdoor-flutter-sdk.

Related Issues (16)

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.