Giter Site home page Giter Site logo

Comments (4)

bynicodevelop avatar bynicodevelop commented on June 12, 2024

I just found the beginning of an answer.

In the permissions to create a user, you must authorize in public:

Writing
and reading.

The problem is that a user with the "public" role, shouldn't have read access.

Am I mistaken?

from directus-dart.

fracosfr avatar fracosfr commented on June 12, 2024

Hello,

Maybe an answer :

You can use the invite method await sdk.users.invite(email: '[email protected]', role: 'some-uuid');

To secure you may create an user "signup user" with only the right to add user (you can use a custom right if you want), and create an unique token for this user.

And to create a new user, use a specific instance of the Directus Package with authentification by token with the "signup user" token.

If you dont want use the Directus interface, you can customize the link, but it seem this functionnality not yet available in the package.

from directus-dart.

apstanisic avatar apstanisic commented on June 12, 2024

I can't reproduce this error.
But this is still a bug since Unhandled Exception: type 'String' is not a subtype of type 'int' of 'index' should not be thrown exception.
In my example it throws:

Unhandled exception:
Instance of 'DirectusError'
#0      DirectusResponse.fromRequest (package:directus_core/src/data_classes/directus_response.dart:46:7)

when I do not have sufficient permission

from directus-dart.

apstanisic avatar apstanisic commented on June 12, 2024

I think this is same as #39. Try 0.9.1. Reopen if exception still exists

from directus-dart.

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.