Coder Social home page Coder Social logo

Comments (4)

beepsoft avatar beepsoft commented on May 22, 2024

Besides registering users it would also be great to have the ability to manage sign in of users eg. to have an admin exposed sign in API where the default login related settings can be overridden for each sign in request.

For example:

  • Setting token expiration length when signing in a user. The use case for this is that token expiration could be different for users with different roles and we could set a different expiration length on a per user basis.
  • Setting requirement for MFA. Again, for some users we want to make it optional, or required. It could again be set wether MFA is required or not at login time.

from nhost.

plmercereau avatar plmercereau commented on May 22, 2024

Hello @beepsoft,
Better late than never.

From what I see, it is possible to perform some tasks from the GraphQL endpoint when setting a specific set of permissions to a super user role (or when using the hasura secret except):

  • trigger emails
  • set password
  • authenticate (but I don't think this one should be considered)

About the two examples, it would imply adding new columns in the user table (something like access_token_expires_in and mfa_required). Then, in using the above suggestion, it would be already possible to change these values.

I feel the two examples are bit of an edge case, but feel free to open an issue about each, maybe it will ring a bell to other community members!

from nhost.

mrkpatchaa avatar mrkpatchaa commented on May 22, 2024

@plmercereau I was actually looking for how to set longer user sessions without having to refresh.
We're adding offline capability to our application and we would like people to login in the morning, disconnect from internet and then synchronize their work at the end of the day for example.

from nhost.

stale avatar stale commented on May 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from nhost.

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.