The Authentication technique used mainly by token based with OWIN, Step was to register a user , We created a appliction form to submit the user credentials to the WEB API Post Mehtod and saved in the database . We have built a repository class which interacts with the database and gives the required result-set when requested for , We have also introduced a Business Layer which handles the business logics and acts as model for the controller . The implementations of the Authentication and Authorization is done from this site . http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/ The Controller Class using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using WebApiDemo.Models; namespace WebApiDemo.Controllers { public class EmployeeController : ApiController { [Authorize] ...
THE CODE IS GIVEN BELOW- using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Security; /* the class that contains the encrypted string*/ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Drawing; using System.Xml.Linq; namespace ConsoleApplication7 { class GUI :Form { private Label nameLabel1; private Label nameLabel2; private Button nameButton; private ComboBox nameComBox; private ComboBox nameComBox1; private List<string> nameList; private List<string> nameList...
Custom Directives Directive are of various types : Componenets - Containes its own HTML elements , Decorators - Enhances functionality of existing cutomers ,Templating - Which manupulate the DOM elements and have its own templating.A component oriented directivs return html in the form of template Directive with different html template ---------------------------------------------------------------------------------------------------------------------- html <div ng-controller="CustomDirectivesController2"> <h2> Customer Directive2 </h2> <div> <input type="text" ng-model="search"> <button ng-click="getTheEmployee()">Search</button> </d...
Comments
Post a Comment