class

AzuCLI::Generate::Auth

Inherits Teeplate::FileTree < Reference < Object

Authentication setup generator with Authly integration

Constants

OUTPUT_DIR = "."

Constructors

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

Instance methods

____collect_files(____files)

:nodoc:

Source
__ecr1(____io)
Source
__ecr10(____io)
Source
__ecr12(____io)
Source
__ecr14(____io)
Source
__ecr16(____io)
Source
__ecr18(____io)
Source
__ecr20(____io)
Source
__ecr22(____io)
Source
__ecr24(____io)
Source
__ecr26(____io)
Source
__ecr28(____io)
Source
__ecr30(____io)
Source
__ecr32(____io)
Source
__ecr34(____io)
Source
__ecr36(____io)
Source
__ecr38(____io)
Source
__ecr4(____io)
Source
__ecr40(____io)
Source
__ecr42(____io)
Source
__ecr44(____io)
Source
__ecr46(____io)
Source
__ecr48(____io)
Source
__ecr50(____io)
Source
__ecr52(____io)
Source
__ecr54(____io)
Source
__ecr56(____io)
Source
__ecr58(____io)
Source
__ecr6(____io)
Source
__ecr60(____io)
Source
__ecr62(____io)
Source
__ecr64(____io)
Source
__ecr66(____io)
Source
__ecr68(____io)
Source
__ecr70(____io)
Source
__ecr72(____io)
Source
__ecr74(____io)
Source
__ecr76(____io)
Source
__ecr78(____io)
Source
__ecr8(____io)
Source
__ecr80(____io)
Source
api_mode?

Infer project mode based on presence of pages directory

Source
csrf_enabled?

Check if CSRF protection is enabled

Source
dependencies

Get required dependencies

Source
enable_csrf
Source
enable_csrf=(enable_csrf : Bool)
Source
enable_oauth_providers
Source
enable_oauth_providers=(enable_oauth_providers : Array(String))
Source
enable_rbac
Source
enable_rbac=(enable_rbac : Bool)
Source
github_oauth_enabled?

Check if GitHub OAuth is enabled

Source
google_oauth_enabled?

Check if Google OAuth is enabled

Source
jwt_methods

Generate enhanced JWT methods with security improvements

Source
oauth_providers

Get enabled OAuth providers

Source
password_hash_method

Generate password hashing method with enhanced security

Source
project
Source
project=(project : String)
Source
rbac_enabled?

Check if RBAC is enabled

Source
render(out_dir : String)

Override render to handle file renaming after generation

Source
rendered_file_entries

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

Source
strategy
Source
strategy=(strategy : String)
Source
timestamp

Returns the base timestamp (used in template evaluation)

Source
user_migration

Get migration content with enhanced security and RBAC

Source
user_model
Source
user_model=(user_model : String)
Source
user_model_class

User model helper methods

Source
user_model_plural
Source
user_model_singular
Source
user_model_table
Source
using_authly?

Check if using Authly

Source
using_jwt?

Check if using JWT

Source
using_oauth?

Check if using OAuth

Source
using_session?

Check if using session

Source
web_mode?
Source