Class: authenticationDirective directive:gmfAuthentication

gmf.authenticationDirective

new authenticationDirective(gmfAuthenticationTemplateUrl)

An "authentication" directive for a GeoMapFish application. With the use of the "authentication" service, it features a complete interface for the user to be able to login, logout, change or reset his or her password. The gmfUser angular value is also used to keep track of the user information. When empty, that means that the user isn't connected yet.

While not logged in, the "login" form is shown, which allows the user to either log in or ask for a password reset.

Once logged in, the "logout" form is shown, which allows the user to either log out or change his or her password.

Example:

 <gmf-authentication
   gmf-authentication-allow-password-change="true">
 </gmf-authentication>
HTML attributes:
Name Type Description
gmf-authentication-allow-password-change Whether to show the change password button. Default to true.
Returns:
angular.Directive

The Directive Definition Object.