/angular_auth_service

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

angular_auth_service

Description: Angularjs service used for user authentication through JSON Web Tokens.

Getting Started

Use these instructions to get a copy of this project up and running on your local machine for development and testing.

Prerequisites

  • Angular.js installed in the development machine
  • Angular module to use this file with eg. an authentication module

Installing

  • Clone this project to your angular module's services folder
  • Change the module name marked "CHANGE ME!!" at the top of the authentication.service.js file
    • .module("CHANGE ME!!!!");
    • Change to .module("Your Module Name");
  • Add script link in angular app to this file
    • <script scr="Path to auth.service.js file goes here"></script>
  • Use methods to buil authentication

Tests

  • TODO
    • Create test suite

Built With

Authors

License

This project is license under the GPL Version 2.0 - please see the LICENSE.md file for more details.