Metastatic.Semantic.Domains.Auth
(Metastatic v0.10.4)
View Source
Authentication and authorization operation patterns for semantic enrichment.
This module defines patterns for detecting auth operations across
multiple languages and auth libraries. Patterns are registered with
the Metastatic.Semantic.Patterns registry at module load time.
Supported Libraries
Elixir
- Guardian - JWT authentication
- Pow - User authentication
- Bcrypt/Argon2 - Password hashing
- Ueberauth - OAuth authentication
Python
- Flask-Login - Flask authentication
- Django auth - Django authentication
- passlib - Password hashing
- PyJWT/python-jose - JWT handling
Ruby
- Devise - Rails authentication
- Warden - Rack authentication
- bcrypt - Password hashing
- Knock - JWT authentication
JavaScript
- Passport.js - Node.js authentication
- jsonwebtoken - JWT handling
- bcrypt - Password hashing
- Auth0 - Auth0 SDK
Auth Operations
| Operation | Description |
|---|---|
:login | User login/sign-in |
:logout | User logout/sign-out |
:authenticate | Verify user credentials |
:register | User registration |
:verify_token | JWT/token verification |
:generate_token | JWT/token generation |
:refresh_token | Token refresh |
:hash_password | Password hashing |
:verify_password | Password verification |
:authorize | Check authorization/permissions |
:oauth | OAuth flow operations |
:session | Session management |
Pattern Structure
Each pattern is a tuple of {pattern, spec} where:
pattern- String or Regex to match function namesspec- Map with operation details::operation- The auth operation type:framework- The auth library identifier:extract_target- Strategy for extracting user/resource
Summary
Functions
Registers all auth patterns for all languages.