feat: Add LogUserBehavior model and comprehensive System Log userBehaviors support#509
Open
BinoyOza-okta wants to merge 1 commit intomasterfrom
Open
feat: Add LogUserBehavior model and comprehensive System Log userBehaviors support#509BinoyOza-okta wants to merge 1 commit intomasterfrom
BinoyOza-okta wants to merge 1 commit intomasterfrom
Conversation
…viors support Add structured LogUserBehavior model to replace string-based userBehaviors in System Log events. Includes OpenAPI spec updates, Python SDK implementation, and complete documentation. Key changes: - New LogUserBehavior model with id, name, and result fields - Updated LogSecurityContext to use List[LogUserBehavior] - Comprehensive documentation Backward-compatible enhancement providing structured data for risk-based authentication analysis.
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.
feat: Add LogUserBehavior model and System Log userBehaviors documentation
This commit adds comprehensive support for the
userBehaviorsfield in Okta System Log events, including the new LogUserBehavior model, updated OpenAPI specification, and complete documentation.Core Changes
OpenAPI Specification (openapi/api.yaml)
LogUserBehaviorschema component with properties:id: Unique identifier of the user behavior detection modelname: Name of the user behavior detection modelresult: Result of user behavior analysis (UNKNOWN, POSITIVE, NEGATIVE, BAD_REQUEST)LogSecurityContext.userBehaviorsto referenceLogUserBehaviorschemaModel Implementation (okta/models/)
log_user_behavior.pymodel classlog_security_context.pyto useList[LogUserBehavior]instead ofList[str]to_dict()andfrom_dict()methodsDocumentation (docs/)
LogUserBehavior.mdmodel documentationLogSecurityContext.mdto reflect new userBehaviors typeModule Exports
okta/__init__.pyexportsokta/models/__init__.pyexportsWhat are userBehaviors?
userBehaviors are part of Okta's risk-based authentication system that detect behavioral patterns during authentication events:
Breaking Changes
None. This is a backward-compatible enhancement that changes the type of
userBehaviorsfromList[str]toList[LogUserBehavior], providing structured data instead of plain strings.API Reference
Files Changed
Modified:
Added: