class
AzuCLI::Generate::Auth
- AzuCLI::Generate::Auth
- Teeplate::FileTree
- Reference
- Object
Overview
Authentication setup generator with Authly integration
Defined in:
azu_cli/generators/auth.crConstant Summary
-
OUTPUT_DIR =
"."
Constructors
Instance Method Summary
-
#____collect_files(____files)
:nodoc:
- #__ecr10(____io)
- #__ecr12(____io)
- #__ecr14(____io)
- #__ecr16(____io)
- #__ecr18(____io)
- #__ecr2(____io)
- #__ecr20(____io)
- #__ecr4(____io)
- #__ecr6(____io)
- #__ecr8(____io)
-
#csrf_enabled? : Bool
Check if CSRF protection is enabled
-
#dependencies : Array(String)
Get required dependencies
- #enable_csrf : Bool
- #enable_csrf=(enable_csrf : Bool)
- #enable_oauth_providers : Array(String)
- #enable_oauth_providers=(enable_oauth_providers : Array(String))
- #enable_rbac : Bool
- #enable_rbac=(enable_rbac : Bool)
-
#github_oauth_enabled? : Bool
Check if GitHub OAuth is enabled
-
#google_oauth_enabled? : Bool
Check if Google OAuth is enabled
-
#jwt_methods : String
Generate enhanced JWT methods with security improvements
-
#oauth_providers : Array(String)
Get enabled OAuth providers
-
#password_hash_method : String
Generate password hashing method with enhanced security
- #project : String
- #project=(project : String)
-
#rbac_enabled? : Bool
Check if RBAC is enabled
- #strategy : String
- #strategy=(strategy : String)
-
#user_migration : String
Get migration content with enhanced security and RBAC
- #user_model : String
- #user_model=(user_model : String)
-
#using_authly? : Bool
Check if using Authly
-
#using_jwt? : Bool
Check if using JWT
-
#using_oauth? : Bool
Check if using OAuth
-
#using_session? : Bool
Check if using session
Constructor Detail
def self.new(project : String, strategy : String = "authly", user_model : String = "User", enable_rbac : Bool = true, enable_csrf : Bool = true, enable_oauth_providers : Array(String) = ["google", "github"])
#