Code Monkey home page Code Monkey logo

agrc.ijit's People

Contributors

dependabot[bot] avatar stdavis avatar steveoh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dwideng

agrc.ijit's Issues

Password Reset UX

Ok picture this ๐Ÿ“ท

you go to sign in enter your user name password it doesn't work

you click forgot password

you get an empty box. ๐Ÿ™…

Why not populate what was in the sign in text box so you dont' have to type it again.

Authentication Folder

Create an authentication folder and move the LoginRegister widget stuff into that.

ChangeRequest needs contact route

The change request should accept an optional email address or something to get back in touch with the people who are submitting the changes.

Sign In Validation on Copy/Paste

Need to add more event listeners so that you can copy paste your password into the password field and still click the sign in button.

User Admin Link

I think it could be helpful to be able to get to the admin page from the _LoginRegisterLogout widget.

Sign in success via remember me

When you successfully login via the login register widget a topic is published. When remember me is checked and authentication happens the sign in pane success thing is invoked. This emits an event. I put that code there and I think it's stupid. I don't know why I did it but for things like the pel app wizard to work properly the response from the remember me request needs to be published. This allows widgets who don't have a reference to the login stuff to act on the sign in event. I'd like to see an approach on how to refactor that in that you think is acceptable.

Logout Functionality

Add a new constructor parameter to the LoginRegister widget called logoutDom. This should accept a dom node and populate it with something like:

Welcome Scott Davis | sign out (maybe as a dropdown?)

This should display the current user's full name and a logout link. Upon clicking logout the login window should be displayed again. After adding cookies to the widget, this would also clear any cookies. It could also be enhanced in the future to redirect the user to another page after logging out.

UserAdmin Widget

  • List users awaiting approval.
  • Accept user and assign for any role including admin role
  • Reject a pending user
  • Delete an existing user
  • Reset user's password

This widget should require login and validate that the logged in user is a member of the admin role.

Change Password

Add change password functionality to the _LoginRegisterLogout widget.

LoginRegister - Don't show on load

Add a show option to the bootstrap modal constructor that is linked to a constructor option on the LoginRegister widget. Something like showDialogOnCreation. This new constructor option should default to true.

Then add a method to LoginRegister called showDialog.

LoginRegister - Token Requests

Need to figure out how to send tokens to secured services on every request. It would be great if we could do this automatically by using setRequestPreCallback.

Also need to figure out how to request new tokens and handle a bad token being rejected by the server.

Remember Me Checkbox

Add a "Remember me" checkbox to the "Sign In" pane in the LoginRegister widget.

This should store a long term token from ArcGIS Server, it's expiration date and the user name in localStorage or a cookie on the client. We may want to store other user info also?

Then the next time the widget is initialized it should look for these values and if they are present and the token isn't expired, it will skip the login screen.

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.