{"repo":"dhatim/dropwizard-jwt-cookie-authentication","free":true,"listed":false,"github":"https://github.com/dhatim/dropwizard-jwt-cookie-authentication","clone":"git clone https://github.com/dhatim/dropwizard-jwt-cookie-authentication.git","description":"Dropwizard bundle managing authentication through JWT cookies","language":"Java","stars":38,"topics":["jwt","cookie","java","dropwizard","module"],"license":null,"category":"auth-billing-email","readme_excerpt":"Please note version 5 requires Java 11 and Dropwizard 4. dropwizard-jwt-cookie-authentication Statelessness is not only an architectural constaint of RESTful applications, it also comes with a lot of advantages regarding scalability and memory usage. A common pattern is to provide the client with a signed JWT containing all necessary authorization and/or session state information. This JWT must then be passed along subsequent requests, usually in bearer Authorization HTTP headers. However, in the particular case where clients of the RESTful application are web applications, it is much more interesting to use cookies. The browser will automatically read, store, send and expire the tokens, saving front-end developers the hassle of doing it themselves. This dropwizard bundle makes things simple for back-end developpers too. It automatically serializes/deserializes session information into/from JWT cookies. Enabling the bundle Add the dropwizard-jwt-cookie-authentication dependency Add the dropwizard-jwt-cookie-authentication library as a dependency to your pom.xml file: Edit you app's Dropwizard YAML config file The default values are shown below. If they suit you, this step is optional. Add the 'JwtCookieAuthConfiguration' to your application configuration class: This step is also optional if you skipped the previous one. Add the bundle to the dropwizard application If you have a custom configuration fot the bundle, specify it like so: Using the bundle By default, the JWT cooki","default_branch":null,"files":null,"tree":[],"storefront":"/r/dhatim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dhatim/dropwizard-jwt-cookie-authentication/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}