auth/

directory
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2025 License: MIT

README

Authentication & Authorization Examples

Overview

This directory contains examples demonstrating how to use the authentication and authorization components of the ServiceLib library. Each example is a complete, runnable application that showcases specific features and usage patterns.

Examples

Running the Examples

Each example can be run from its directory using:

go run main.go

License

This project is licensed under the MIT License - see the LICENSE file for details.

Directories

Path Synopsis
Example usage of creating an Auth instance
Example usage of creating an Auth instance
Example demonstrating authorization concepts
Example demonstrating authorization concepts
Example usage of the Auth module configuration
Example usage of the Auth module configuration
Example demonstrating context utilities for authentication
Example demonstrating context utilities for authentication
Example demonstrating error handling in the auth module
Example demonstrating error handling in the auth module
Example usage of the Auth middleware
Example usage of the Auth middleware
Example usage of the Auth module for a quick start
Example usage of the Auth module for a quick start
Example demonstrating the concept of token handling in authentication
Example demonstrating the concept of token handling in authentication
Example demonstrating how to get user information from the context
Example demonstrating how to get user information from the context

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL