feat(auth): implement Auth API functionality#89
Open
briansumma wants to merge 4 commits intoNorthShoreAutomation:mainfrom
Open
feat(auth): implement Auth API functionality#89briansumma wants to merge 4 commits intoNorthShoreAutomation:mainfrom
briansumma wants to merge 4 commits intoNorthShoreAutomation:mainfrom
Conversation
Add comprehensive authentication and authorization functionality including: - User authentication and token management - System domain management and templates - Identity provider integration (SAML, OAuth, Active Directory) - Multi-factor authentication (OTP, TOTP) - App management and external authentication - Registration and invitation workflows - Password management and security policies - Referral code system Key additions: - Complete AuthSpec with 80+ endpoint methods - Comprehensive Pydantic models for all auth operations - Support for SAML SSO, multi-domain login, and marketplace integration - Extensive test coverage with 50+ unit tests - Internal utilities for Pydantic model detection - Full documentation with parameter types and error codes Technical implementation: - Import reorganization for better structure - Type-safe parameter validation and response handling - Support for both Pydantic models and dictionary inputs - Proper error handling for authentication failures - Integration with external identity providers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements comprehensive authentication and authorization functionality for the Pythonik client, providing complete integration with Iconik's Auth API endpoints.
Features Added
Core Authentication
Identity Providers & SSO
Multi-Factor Authentication
System Domain Management
User Management
App Management
Additional Features
Technical Implementation
Models (926 lines)
API Specification (1,676 lines)
Testing (1,039 lines)
Code Quality
Breaking Changes
None - This is a purely additive change with no modifications to existing functionality.
API Coverage
This implementation provides complete coverage of the Iconik Auth API including:
/auth/- Core authentication endpoints/apps/- Application management/system_domains/- Domain management/auth/saml/- SAML SSO functionality/auth/multidomain/- Multi-domain operations/invitation/- User invitation workflows/registrations/- User registration system/password/- Password management/referral_codes/- Referral system/marketplace/- Marketplace integrationsUsage Examples
Basic Authentication
Token Management
System Domain Management
Identity Provider Setup
Testing
All functionality has been thoroughly tested with:
Run tests with:
Dependencies
This implementation completes a major component of the Iconik API integration and provides users with comprehensive authentication and authorization capabilities essential for secure API interactions.