class AzuCLI::Generate::Auth

Overview

Authentication setup generator with Authly integration

Defined in:

azu_cli/generators/auth.cr

Constant Summary

OUTPUT_DIR = "."

Constructors

Instance Method Summary

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"]) #

[View source]

Instance Method Detail

def ____collect_files(____files) #
Description copied from class Teeplate::FileTree

:nodoc:


[View source]
def __ecr10(____io) #

[View source]
def __ecr12(____io) #

[View source]
def __ecr14(____io) #

[View source]
def __ecr16(____io) #

[View source]
def __ecr18(____io) #

[View source]
def __ecr2(____io) #

[View source]
def __ecr20(____io) #

[View source]
def __ecr4(____io) #

[View source]
def __ecr6(____io) #

[View source]
def __ecr8(____io) #

[View source]
def csrf_enabled? : Bool #

Check if CSRF protection is enabled


[View source]
def dependencies : Array(String) #

Get required dependencies


[View source]
def enable_csrf : Bool #

[View source]
def enable_csrf=(enable_csrf : Bool) #

[View source]
def enable_oauth_providers : Array(String) #

[View source]
def enable_oauth_providers=(enable_oauth_providers : Array(String)) #

[View source]
def enable_rbac : Bool #

[View source]
def enable_rbac=(enable_rbac : Bool) #

[View source]
def github_oauth_enabled? : Bool #

Check if GitHub OAuth is enabled


[View source]
def google_oauth_enabled? : Bool #

Check if Google OAuth is enabled


[View source]
def jwt_methods : String #

Generate enhanced JWT methods with security improvements


[View source]
def oauth_providers : Array(String) #

Get enabled OAuth providers


[View source]
def password_hash_method : String #

Generate password hashing method with enhanced security


[View source]
def project : String #

[View source]
def project=(project : String) #

[View source]
def rbac_enabled? : Bool #

Check if RBAC is enabled


[View source]
def strategy : String #

[View source]
def strategy=(strategy : String) #

[View source]
def user_migration : String #

Get migration content with enhanced security and RBAC


[View source]
def user_model : String #

[View source]
def user_model=(user_model : String) #

[View source]
def using_authly? : Bool #

Check if using Authly


[View source]
def using_jwt? : Bool #

Check if using JWT


[View source]
def using_oauth? : Bool #

Check if using OAuth


[View source]
def using_session? : Bool #

Check if using session


[View source]