NCDevCon — North Carolina’s Premier Web & Mobile Conference

  • “The size of the conference made networking much easier than larger conferences.”
  • “Everything about the conference was great – the location, the speakers, variety of topics.”
  • “The number of sessions and quality of speakers you had was amazing.”
  • “There was such a wide variety of topics that I was interested in, which is good”

    “Good job of mixing presentation and hands on.

  • “I was amazed at the quality of the sessions, it was as good or better than conferences that you would spend a lot of money to attend.”

October 7-8, 2017 • Raleigh, North Carolina
Continue reading “NCDevCon — North Carolina’s Premier Web & Mobile Conference”

The Recipe for Angular 2 in a Java EE Environment: Frontend 2

  • This is the fourth article in our “The Recipe for Angular 2 in a Java EE Environment” series, with a more detailed description of the Frontend of the Angular2 and JavaEE Project.
  • It follows my third article about Angular 2 and Java EE that gave a detailed overview of the Frontend infrastructure of the Car Rental Project.
  • In this article about the Angular UI, we’ll go over the HTTP Service with its Types, the Detailview with its Validations, and 2 Tests, which are shown.
  • Line 23: sets the Value of the Input Parameter of the Component as the value of the Formcontrol.
  • Angular provides a flexible Validation infrastructure that can be used to write Form Validations that validate values dependent on each other.

We continue our look at creating frontend code in Angular using a Java EE environment. We’ll go over HTTP Services, Detailview and validations, and run 2 tests.
Continue reading “The Recipe for Angular 2 in a Java EE Environment: Frontend 2”

computer solutions: JSON Web Token Tutorial: An Example in Laravel and AngularJS

  • It comprises a compact and URL-safe JSON object, which is cryptographically signed to verify its authenticity, and which can also be encrypted if the payload contains sensitive information.Because of it’s compact structure, JWT is usually used in HTTPheaders or URL query parameters.A JWT is represented as a sequence of base64url encoded values that are separated by period characters.JSON Web Token example:The header contains the metadata for the token and it minimally contains the type of signature and the encryption algorithm.
  • This JWT Header declares that the encoded object is a JSON Web Token, and that it is signed using the HMAC SHA-256 algorithm.Once this is base64 encoded, we have the first part of our JWT.In the context of JWT, a claim can be defined as a statement about an entity (typically, the user), as well as additional meta data about the token itself.
  • However, if we want to add an additional layer of protection, we can encrypt the JWT payload itself using the JSON Web Encryption (JWE) specification.Of course, if we want to avoid the additional overhead of using JWE, another option is to simply keep sensitive information in our database, and use our token for additional API calls to the server whenever we need to access sensitive data.Before we can see all the benefits of using token authentication, we have to look at the way authentication has been done in the past.Because the HTTP protocol is stateless, there needs to be a mechanism for storing user information and a way to authenticate the user on every subsequent request after login.
  • We can easily use the same token for fetching a secure resource from a domain other than the one we are logged in to.A browser or mobile client makes a request to the authentication server containing user login information.
  • The only thing we have to do is calculate the HMAC SHA-256 to validate the token and parse its content.In this tutorial I am going to demonstrate how to implement the basic authentication using JSON Web Tokens in two popular web technologies: Laravel 5 for the backend code and AngularJS for the frontend Single Page Application (SPA) example.

Continue reading “computer solutions: JSON Web Token Tutorial: An Example in Laravel and AngularJS”

JSON Web Token Tutorial: An Example in Laravel and AngularJS

  • In the context of JWT, a claim can be defined as a statement about an entity (typically, the user), as well as additional meta data about the token itself.
  • A browser or mobile client makes a request to the authentication server containing user login information.
  • A JSON Web Token Example using Laravel 5 and AngularJS

    This JSON web token example will not use any kind of encryption to ensure the confidentiality of the information transmitted in the claims.

  • When we make a POST request to /signin with a username and password, we verify that the user exists and returns a JWT via the JSON response.
  • We are using AngularJS as a front-end, relying on the API calls to the Laravel back-end authentication server for user authentication and sample data, plus the API server for cross-origin example data.

Continue reading “JSON Web Token Tutorial: An Example in Laravel and AngularJS”

computer solutions: JSON Web Token Tutorial: An Example in Laravel and AngularJS

  • It comprises a compact and URL-safe JSON object, which is cryptographically signed to verify its authenticity, and which can also be encrypted if the payload contains sensitive information.Because of it’s compact structure, JWT is usually used in HTTPheaders or URL query parameters.A JWT is represented as a sequence of base64url encoded values that are separated by period characters.JSON Web Token example:The header contains the metadata for the token and it minimally contains the type of signature and the encryption algorithm.
  • This JWT Header declares that the encoded object is a JSON Web Token, and that it is signed using the HMAC SHA-256 algorithm.Once this is base64 encoded, we have the first part of our JWT.In the context of JWT, a claim can be defined as a statement about an entity (typically, the user), as well as additional meta data about the token itself.
  • However, if we want to add an additional layer of protection, we can encrypt the JWT payload itself using the JSON Web Encryption (JWE) specification.Of course, if we want to avoid the additional overhead of using JWE, another option is to simply keep sensitive information in our database, and use our token for additional API calls to the server whenever we need to access sensitive data.Before we can see all the benefits of using token authentication, we have to look at the way authentication has been done in the past.Because the HTTP protocol is stateless, there needs to be a mechanism for storing user information and a way to authenticate the user on every subsequent request after login.
  • We can easily use the same token for fetching a secure resource from a domain other than the one we are logged in to.A browser or mobile client makes a request to the authentication server containing user login information.
  • The only thing we have to do is calculate the HMAC SHA-256 to validate the token and parse its content.In this tutorial I am going to demonstrate how to implement the basic authentication using JSON Web Tokens in two popular web technologies: Laravel 5 for the backend code and AngularJS for the frontend Single Page Application (SPA) example.

Continue reading “computer solutions: JSON Web Token Tutorial: An Example in Laravel and AngularJS”