Skip to content

WhereIsMyRum/JWT-Authentication-and-authorization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON web token authetication and authorization

Why

This project was created for Data Security subject at Technical University of Denmark during my MSc of Computer Science and Engineering studies.

What

The goal of the project was to create a simple printer interface whose methods can be invoked remotely. Such an interface should be properly secured in order to prevent unauthenticated users from invoking the printer's method. Moreover, different users have different user's permissions, so authorization mechanism is also needed.

How

Both authentication and authorization mechanisms were implemented using JSON Web Token authentication. In order to invoke methods, user needs to provide a JWT token. In order to obtain one, the user needs to log in. User's credentials are stored on the server in a file, where passwords are hashed using a salt. On every method invocation, the user must provide his token, which is verified by the server for validity. The policy file on the server stores information regarding what actions a specific user is allowed to perform against the server.

Technologies used

  • Java
  • JWT
  • RMI

Created: November 2018

About

Take a look at my attempt at JWT authentication and authorization using Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages