Coder Social home page Coder Social logo

Comments (10)

fnakstad avatar fnakstad commented on July 30, 2024

Yep! You read my mind :) I'm actually working on a bigger refactoring of both the server and client side code, part of which encompasses putting more of the authentication/authorization specific stuff into the Auth service. So expect a bigger update before the week is over!

from angular-client-side-auth.

wladston avatar wladston commented on July 30, 2024

Awesome! I'll watch closely. I'll also try to make my own version of the Auth service while you finish yours.

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Cool! Definitely let me know if you have any other issues or ideas to make the solution better :)

from angular-client-side-auth.

wladston avatar wladston commented on July 30, 2024

I do have a few, but I'll wait for you to release your updated version, maybe you already tackled them. As soon as I commit my implementation I'll send it to you as well (I'm doing a Bulletin Board).

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Okay, I just pushed whatever I have right now though there will be more refactoring once I've cleared off some more pressing issues.

from angular-client-side-auth.

wladston avatar wladston commented on July 30, 2024

Awesome. Will check it out tonight.

from angular-client-side-auth.

wladston avatar wladston commented on July 30, 2024

One question: why do you get the cookie with the user name twice in the service.js ? In my local tests, the call in init is unnecessary ...

from angular-client-side-auth.

wladston avatar wladston commented on July 30, 2024

Here is my current implementation (considerably simpler than yours): https://github.com/wladston/mongobb

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Ah, the init function isn't actually called anywhere. I simply forgot to remove it, but it's gone now :) It looks like we've done the exact same change in the login, logout, and register functions in the Auth service, so that's a good sign. I also moved some of the setup logic I used to have in my Angular run() handler to the Auth service instead, and added some functions (authorize, isLoggedIn) which I am using in the $routeChangeStart handler.

from angular-client-side-auth.

wladston avatar wladston commented on July 30, 2024

Allright. In time, I'm going to implement all of your features in my project too. Congratulations for the awesome work.

from angular-client-side-auth.

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.