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 __ecr1(____io) #

[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 __ecr20(____io) #

[View source]
def __ecr22(____io) #

[View source]
def __ecr24(____io) #

[View source]
def __ecr26(____io) #

[View source]
def __ecr28(____io) #

[View source]
def __ecr30(____io) #

[View source]
def __ecr32(____io) #

[View source]
def __ecr34(____io) #

[View source]
def __ecr36(____io) #

[View source]
def __ecr38(____io) #

[View source]
def __ecr4(____io) #

[View source]
def __ecr40(____io) #

[View source]
def __ecr42(____io) #

[View source]
def __ecr44(____io) #

[View source]
def __ecr46(____io) #

[View source]
def __ecr48(____io) #

[View source]
def __ecr50(____io) #

[View source]
def __ecr52(____io) #

[View source]
def __ecr54(____io) #

[View source]
def __ecr56(____io) #

[View source]
def __ecr58(____io) #

[View source]
def __ecr6(____io) #

[View source]
def __ecr60(____io) #

[View source]
def __ecr62(____io) #

[View source]
def __ecr64(____io) #

[View source]
def __ecr66(____io) #

[View source]
def __ecr68(____io) #

[View source]
def __ecr70(____io) #

[View source]
def __ecr72(____io) #

[View source]
def __ecr74(____io) #

[View source]
def __ecr76(____io) #

[View source]
def __ecr78(____io) #

[View source]
def __ecr8(____io) #

[View source]
def __ecr80(____io) #

[View source]
def api_mode? : Bool #

Infer project mode based on presence of pages directory


[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 render(out_dir : String) #

Override render to handle file renaming after generation


[View source]
def rendered_file_entries #

Override rendered_file_entries to filter files based on strategy and configuration Returns only the entries that should be included


[View source]
def strategy : String #

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

[View source]
def timestamp : Int64 #

Returns the base timestamp (used in template evaluation)


[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 user_model_class : String #

User model helper methods


[View source]
def user_model_plural : String #

[View source]
def user_model_singular : String #

[View source]
def user_model_table : 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]
def web_mode? : Bool #

[View source]