Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Software Development Tools No-Code Development
Business
Entrepreneurship Communication Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certifications Network & Security Hardware Operating Systems & Servers Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Paid Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement & Gardening Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition & Diet Yoga Mental Health Martial Arts & Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Learning Teacher Training Test Prep Other Teaching & Academics
Web Development JavaScript React Angular CSS Node.Js PHP HTML5 Vue JS
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Amazon AWS Cisco CCNA Microsoft AZ-900 CompTIA Security+
Microsoft Power BI SQL Tableau Data Modeling Business Analysis Business Intelligence MySQL Qlik Sense Data Analysis
Unity Unreal Engine Game Development Fundamentals C# 3D Game Development C++ Unreal Engine Blueprints 2D Game Development Mobile Game Development
Google Flutter iOS Development Android Development Swift React Native Dart (programming language) Kotlin Mobile App Development SwiftUI
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting Canva InDesign Character Design Procreate Digital Illustration App
Life Coach Training Neuro-Linguistic Programming Personal Development Personal Transformation Life Purpose Mindfulness Sound Therapy Meditation Coaching
Business Fundamentals Entrepreneurship Fundamentals Freelancing Business Strategy Startup Business Plan Online Business Blogging Leadership
Digital Marketing Social Media Marketing Marketing Strategy Internet Marketing Google Analytics Email Marketing Copywriting YouTube Marketing Startup

DevelopmentWeb DevelopmentGo (programming language)

Golang: Intro to REST API JWT auth with Go programming lang

Golang: Intro to JWT Auth with Golang (Go programming language)
Rating: 4.0 out of 54.0 (346 ratings)
2,392 students
Created by Mike M, Neb H.
Last updated 5/2021
English
English [Auto]

What you'll learn

  • Build a user registration and login backend with Golang
  • Understand JSON Web Tokens (Header, Payload, Signature)
  • Create RESTful APIs (user signup, login and a protected endpoint)
  • Authenticate users with email, password and a JWT
  • Secure RESTful endpoints with JWTs
  • Examine the internals of a JWT
  • Sign and validate a JWT
  • Create a Postgres database instance and a users table and insert records into the table
  • Examine the definitions of different Golang package methods

Requirements

  • Familiar with the basics of Golang and RESTful APIs
  • Any text editor (preferably visual studio code with golang plugins such as go-to definition)

Description

Build Golang (Go programming language) REST API authentication with JWTs is a simple introductory guide to creating secure Golang APIs with JSON Web Tokens (JWTs).

You will:

- learn the theory behind JSON WEB TOKENs (JWTs) and how they are constructed and used,

- build a Golang (Go programming language) signup handler function that takes the user’s credentials such as email and password and saves them on a PostgreSQL database table,

- implement a Golang (Go programming language) utility that generates password hashes with the ‘bcrypt’ package to avoid storing plain text passwords on the database

- build a Golang (Go programming language) login handler function that takes user credentials and verifies the user based on their supplied credentials

- implement a Token generator utility that takes the user’s credentials, and together with developer specified secret and claims, generates a JSON Web Token (JWT),

- create a Golang (Go programming language) middleware function that validates a JWT token upon request to restricted routes

Also, Throughout the process you will learn several Golang (Go programming language) and REST API authentication concepts.

Aside from Golang (Go programming language), some of the major technologies you will use are:

  • PostgreSQL database to create a database instance and a users table where your records will be stored in,

  • ‘jwt-go’ package for generating the JSON Web Token and its validation,

  • ‘gorilla/mux’ package for creating the router that your endpoints and handler functions will be registered on,

  • ‘pq’ package for parsing your database instance’s URL,

  • ‘database/sql’ package for establishing and maintaining connection with your database instance,

  • ‘bcrypt’ package for generating and comparing your password hashes,

  • Postman application for testing your APIs with several HTTP requests


Who this course is for:

  • Anyone interested in creating JWT authenticated RESTful APIs with Golang

Featured review

ਦੀਪ ਗਿੱਲ
ਦੀਪ
39 courses
11 reviews
Rating: 5.0 out of 5há um ano
I am giving 5 start because he this tutorials sticks with JWT Section so you will not find any other basic stuff, complicated interfaces or etc.. but personally i don't like because the things were explained in the videos i already know - i was expecting something like refresh tokens, custom claims... so if you want to know how you can create a login with JWT ("Which you can find from internet youtube etc") then buy but if you expecting things like me please don't buy.

Instructors

Mike M
Software developer
Mike M
  • 3.9 Instructor Rating
  • 695 Reviews
  • 9,739 Students
  • 3 Courses

I am a Software developer with a degree in Electrical Engineering and over three years of software development experience. I use Javascript and several other software development tools on a daily basis. I have experience with HTML5, CSS3, Angular, Ember, React, Vue.js, Go, MySql, Python, Node.js, Express.js and various other development tools. I enjoy coding and sharing my knowledge with others.

Neb H.
Software Developer
Neb H.
  • 3.9 Instructor Rating
  • 695 Reviews
  • 3,854 Students
  • 3 Courses

I am a software developer with experience in developing and testing scalable, fast, and optimized software systems that solve complex problems. I have experience with Python, Django, Express.js, Node.js, C#, and Asp dot net core. I am passionate about Computer Science and enjoy encouraging others to pursue it. I also spend some of my time at programming boot camps helping students in their journey of becoming software developers.

Top companies choose Udemy Business to build in-demand career skills.
NasdaqVolkswagenBoxNetAppEventbrite
  • Udemy Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Investors
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Accessibility statement
Udemy
© 2022 Udemy, Inc.