Coder Social home page Coder Social logo

ngaa's Issues

Get updated user information

How can I deal with the situation where a user's info/profile/permissions have changed? It seems that the user json object is only received upon login.

can't override signinTemplateUrl

I want to use my own signin template,
in my main module's config function:
$authProvider.signinTemplateUrl = 'ui/login.html';
but it doesn't work.

I found that the signinState is always registered before the overriding of signinTemplateUrl.
so it always requesting the default signinTemplateUrl when starting the signinState.

The only thing i can do right now is editing ngAA.js to change the default signinTemplateUrl value of ngAAConfig. Do anyone have some better idea?

Separate responsibilities of the module

It will be good to have ngAA separated into modules that have their own responsibility

  • authentication
  • authorization
  • profile
  • etc

This will give ngAA ability to grow and cover other user management scenarios

How to redirect if already logged in

Hi there ,
My configuration is
$authProvider.signinUrl = 'laravel-frontend/public/api/frontauthenticate';
$authProvider.signinState = 'login';
$authProvider.signinRoute = '/login';
$authProvider.signinTemplateUrl = 'app/shared/views/login.html';
$authProvider.afterSigninRedirectTo = 'dashboard';
$authProvider.afterSignoutRedirectTo = 'login';
so after login it goes to dashboard but then when I write '/login' then it opens login page.

How can I redirect it to dashboard if it is already looged in .

Thanks

signinUrl with internet url error Access-Control-Allow-Origin

Hi

When I use $authProvider.signinUrl with external url (non-localhost) like this:

$authProvider.signinUrl = 'http://example.com/public/api/authenticate';

Show me this error in console:

XMLHttpRequest cannot load http://example.com/public/api/authenticate. 
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

Refresh tokens

It would be nice to be able to support 'refresh tokens' so that a user can remain logged in for an extended/infinite period of time.

Grab all permissions and generate permit keys

Should be able to iterate over all permission assigned to user and generate permit keys in the $rootScope to allow:

  • View to check if current user has a given permits
  • Evaluate at any point if user permitted to do given actions

Permit keys may follow format isPermittedTo[permission] where permission if picked from the current assigned permissions to the user.

So if user has permission View report then isPermittedToViewReport will be available in $rootScope as a permit key for view reports.

It may then used in views as:

<div ng-show="isPermittedToViewReport"></div>

Or anywhere in codes as:

   if(isPermittedToViewReport){
     //codes
    ...
  }

multi login issue

The ability of multi login needs to be implemented.
"Previous localstorage data when replaced by the new one, the previous login should be killed or fallback to login page"

Add ability to be able to authenticate user from other source than http

Should be able to authenticate user in more than backend server. This is useful if application are created to leverage device storage like localstorage , indexdb and others.

Motivations:
It should be able to used in developing desktop application which are developed in electron and nw.

Permits directives

Should be able to deduce in templates if current user

  • hasPermit
  • hasAllPermits
  • hasAnyPermit

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.