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-force-password-change="::true">
 </gmf-authentication>
HTML attributes:
Name Type Description
gmf-authentication-allow-password-reset boolean Whether to show the password forgotten link. Default to true.
gmf-authentication-allow-password-change boolean Whether to show the change password button. Default to true.
gmf-authentication-force-password-change boolean Force the user to change its password. Default to false. If you set it to true, you should also allow the user to change its password.
Returns:
angular.Directive

The Directive Definition Object.