├── .gitignore ├── README.md ├── auth └── src │ ├── .editorconfig │ ├── .env.example │ ├── .gitattributes │ ├── .gitignore │ ├── README.md │ ├── app │ ├── Classes │ │ ├── Access │ │ │ ├── ListData.php │ │ │ ├── ProcessDestroy.php │ │ │ └── ProcessSave.php │ │ ├── Auth │ │ │ └── VerifyUserPassword.php │ │ ├── CreateDBSeed │ │ │ ├── DB │ │ │ │ ├── DBUserAdminArea.php │ │ │ │ ├── DBUserAdminProfiles.php │ │ │ │ └── DBUserAdminRole.php │ │ │ └── User │ │ │ │ ├── CreateUserAdmin.php │ │ │ │ ├── CreateUserAdminRoles.php │ │ │ │ ├── CreateUserArea.php │ │ │ │ ├── ResizeImage.php │ │ │ │ └── User │ │ │ │ ├── AssociateBrokerToRealEstate.php │ │ │ │ ├── ChangeConstructorUserName.php │ │ │ │ ├── ChangeRealEstateUserName.php │ │ │ │ ├── CreateUserImage.php │ │ │ │ ├── MakeFolderName.php │ │ │ │ ├── SaveAddress.php │ │ │ │ ├── SaveBrokerRole.php │ │ │ │ ├── SaveCompanyOwProfile.php │ │ │ │ ├── SaveConstructorInfo.php │ │ │ │ ├── SaveConstructorRole.php │ │ │ │ ├── SaveFemaleBrokerInfo.php │ │ │ │ ├── SaveMaleBrokerInfo.php │ │ │ │ ├── SavePresentation.php │ │ │ │ ├── SavePresentationPhone.php │ │ │ │ ├── SaveRealEstateInfo.php │ │ │ │ ├── SaveRealEstateRole.php │ │ │ │ ├── UploadBrokerImageProfile.php │ │ │ │ ├── UploadConstructorImageProfile.php │ │ │ │ └── UploadRealEstateImageProfile.php │ │ ├── Enums │ │ │ └── StatusEnum.php │ │ └── Utilities │ │ │ ├── DBStatus.php │ │ │ ├── DBUtility.php │ │ │ └── ResetMigrationTables.php │ ├── Console │ │ └── Kernel.php │ ├── Exceptions │ │ ├── Handler.php │ │ └── StoreDataException.php │ ├── Http │ │ ├── Controllers │ │ │ ├── Admin │ │ │ │ ├── HomeController.php │ │ │ │ └── UsersController.php │ │ │ ├── AdminAuthController.php │ │ │ ├── Auth │ │ │ │ ├── AuthenticatedSessionController.php │ │ │ │ ├── ConfirmPasswordController.php │ │ │ │ ├── ConfirmablePasswordController.php │ │ │ │ ├── EmailVerificationNotificationController.php │ │ │ │ ├── EmailVerificationPromptController.php │ │ │ │ ├── ForgotPasswordController.php │ │ │ │ ├── LoginController.php │ │ │ │ ├── NewPasswordController.php │ │ │ │ ├── PasswordController.php │ │ │ │ ├── PasswordResetLinkController.php │ │ │ │ ├── RegisterController.php │ │ │ │ ├── RegisteredUserController.php │ │ │ │ ├── ResetPasswordController.php │ │ │ │ ├── VerificationController.php │ │ │ │ └── VerifyEmailController.php │ │ │ ├── AuthUserController.php │ │ │ ├── Controller.php │ │ │ ├── HomeController.php │ │ │ ├── ProfileController.php │ │ │ ├── SiteController.php │ │ │ └── Traits │ │ │ │ └── UserAdminTable.php │ │ ├── Kernel.php │ │ ├── Middleware │ │ │ ├── Authenticate.php │ │ │ ├── EncryptCookies.php │ │ │ ├── MustBeAdminstrator.php │ │ │ ├── PreventRequestsDuringMaintenance.php │ │ │ ├── RedirectIfAuthenticated.php │ │ │ ├── TrimStrings.php │ │ │ ├── TrustHosts.php │ │ │ ├── TrustProxies.php │ │ │ ├── ValidateSignature.php │ │ │ └── VerifyCsrfToken.php │ │ ├── Requests │ │ │ ├── Admin │ │ │ │ └── UpdatePasswordRequest.php │ │ │ ├── AuthApiRequest.php │ │ │ ├── ChangeUserPasswordRequest.php │ │ │ ├── LoginRequest.php │ │ │ ├── SaveUserAdminRequest.php │ │ │ └── SendLinkResetPassRequest.php │ │ └── Rules │ │ │ ├── Admin │ │ │ └── VerifyUserPassword.php │ │ │ ├── Cpf.php │ │ │ ├── ValidateEmailExist.php │ │ │ └── VerifyTokenExist.php │ ├── Models │ │ ├── User.php │ │ ├── UserAdmin.php │ │ ├── UserAdminAccessArea.php │ │ ├── UserAdminInfo.php │ │ ├── UserAdminManager.php │ │ └── UserAdminRole.php │ ├── Providers │ │ ├── AppServiceProvider.php │ │ ├── AuthServiceProvider.php │ │ ├── BroadcastServiceProvider.php │ │ ├── EventServiceProvider.php │ │ └── RouteServiceProvider.php │ ├── Traits │ │ └── ApiResponse.php │ └── View │ │ └── Components │ │ ├── AppLayout.php │ │ └── GuestLayout.php │ ├── artisan │ ├── bootstrap │ ├── app.php │ └── cache │ │ └── .gitignore │ ├── composer.json │ ├── composer.lock │ ├── config │ ├── app.php │ ├── auth.php │ ├── broadcasting.php │ ├── cache.php │ ├── cors.php │ ├── database.php │ ├── filesystems.php │ ├── hashids.php │ ├── hashing.php │ ├── logging.php │ ├── mail.php │ ├── passport.php │ ├── queue.php │ ├── sanctum.php │ ├── services.php │ ├── session.php │ └── view.php │ ├── database │ ├── .gitignore │ ├── factories │ │ ├── UserAdminAccessAreaFactory.php │ │ ├── UserAdminFactory.php │ │ ├── UserAdminInfoFactory.php │ │ ├── UserAdminRoleFactory.php │ │ └── UserFactory.php │ ├── migrations │ │ ├── 2014_09_11_000005_create_user_admins.php │ │ ├── 2014_09_11_000006_create_user_admin_roles.php │ │ ├── 2014_09_11_000007_create_user_user_admin_roles.php │ │ ├── 2014_10_12_000000_create_users_table.php │ │ ├── 2014_10_12_000002_create_user_admin_infos.php │ │ ├── 2016_06_01_000001_create_oauth_auth_codes_table.php │ │ ├── 2016_06_01_000002_create_oauth_access_tokens_table.php │ │ ├── 2016_06_01_000003_create_oauth_refresh_tokens_table.php │ │ ├── 2016_06_01_000004_create_oauth_clients_table.php │ │ ├── 2016_06_01_000005_create_oauth_personal_access_clients_table.php │ │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ │ ├── 2019_12_14_000001_create_personal_access_tokens_table.php │ │ ├── 2022_06_22_224810_create_user_admin_access_areas_table.php │ │ ├── 2022_06_22_224837_create_user_admin_user_admin_access_areas_table.php │ │ ├── 2022_07_08_195530_create_user_admin_managers_table.php │ │ └── 2022_07_29_191845_create_oauth_clients_table.php │ └── seeders │ │ └── DatabaseSeeder.php │ ├── package-lock.json │ ├── package.json │ ├── phpunit.xml │ ├── postcss.config.js │ ├── public │ ├── .htaccess │ ├── assets │ │ ├── images │ │ │ ├── profile.jpeg │ │ │ ├── profile_1.jpg │ │ │ ├── profile_2.jpg │ │ │ └── profile_3.jpg │ │ └── txt │ │ │ ├── test_array.txt │ │ │ └── test_file.txt │ ├── css │ │ ├── admin.css │ │ ├── bulma │ │ │ ├── bulma-rtl.css │ │ │ ├── bulma-rtl.css.map │ │ │ ├── bulma-rtl.min.css │ │ │ ├── bulma.css │ │ │ ├── bulma.css.map │ │ │ └── bulma.min.css │ │ ├── components │ │ │ ├── error.css │ │ │ ├── find_item.css │ │ │ ├── inputs.css │ │ │ ├── loading.css │ │ │ ├── modal.css │ │ │ ├── quasarComponents.css │ │ │ └── submit_btn.css │ │ ├── font-awesome-4.7.0 │ │ │ ├── HELP-US-OUT.txt │ │ │ ├── css │ │ │ │ ├── font-awesome.css │ │ │ │ └── font-awesome.min.css │ │ │ ├── fonts │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.svg │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ └── fontawesome-webfont.woff2 │ │ │ ├── less │ │ │ │ ├── animated.less │ │ │ │ ├── bordered-pulled.less │ │ │ │ ├── core.less │ │ │ │ ├── fixed-width.less │ │ │ │ ├── font-awesome.less │ │ │ │ ├── icons.less │ │ │ │ ├── larger.less │ │ │ │ ├── list.less │ │ │ │ ├── mixins.less │ │ │ │ ├── path.less │ │ │ │ ├── rotated-flipped.less │ │ │ │ ├── screen-reader.less │ │ │ │ ├── stacked.less │ │ │ │ └── variables.less │ │ │ └── scss │ │ │ │ ├── _animated.scss │ │ │ │ ├── _bordered-pulled.scss │ │ │ │ ├── _core.scss │ │ │ │ ├── _fixed-width.scss │ │ │ │ ├── _icons.scss │ │ │ │ ├── _larger.scss │ │ │ │ ├── _list.scss │ │ │ │ ├── _mixins.scss │ │ │ │ ├── _path.scss │ │ │ │ ├── _rotated-flipped.scss │ │ │ │ ├── _screen-reader.scss │ │ │ │ ├── _stacked.scss │ │ │ │ ├── _variables.scss │ │ │ │ └── font-awesome.scss │ │ ├── font-awesome.css │ │ └── login.css │ ├── favicon.ico │ ├── fonts │ │ ├── DroidSans.eot │ │ ├── DroidSans.otf │ │ ├── DroidSans.svg │ │ ├── DroidSans.ttf │ │ ├── DroidSans.woff │ │ ├── FontAwesome.otf │ │ ├── PTC55F.eot │ │ ├── PTC55F.otf │ │ ├── PTC55F.svg │ │ ├── PTC55F.ttf │ │ ├── PTC55F.woff │ │ ├── PTS55F.eot │ │ ├── PTS55F.otf │ │ ├── PTS55F.svg │ │ ├── PTS55F.ttf │ │ ├── PTS55F.woff │ │ ├── PTS75F.eot │ │ ├── PTS75F.otf │ │ ├── PTS75F.svg │ │ ├── PTS75F.ttf │ │ ├── PTS75F.woff │ │ ├── fontawesome-webfont(1).eot │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ ├── images │ │ ├── adm │ │ │ ├── bgtopboxhome.jpg │ │ │ ├── bldisplay_1.jpg │ │ │ ├── bldisplay_2.jpg │ │ │ ├── bldisplay_3.jpg │ │ │ ├── bldisplay_3.png │ │ │ ├── checkfeatures1.jpg │ │ │ ├── iconpropdt1.jpg │ │ │ ├── iconpropdt2.jpg │ │ │ ├── iconpropdt3.jpg │ │ │ ├── iconpropdt4.jpg │ │ │ ├── iconsdprop1.png │ │ │ ├── iconsdprop2.png │ │ │ ├── iconsdprop3.png │ │ │ ├── iconspds_1.jpg │ │ │ ├── iconspds_2.jpg │ │ │ ├── iconspds_3.jpg │ │ │ └── iconspds_4.jpg │ │ ├── arrowup.gif │ │ ├── arrowup_wight.gif │ │ ├── arrowup_wight.png │ │ ├── bgulnav1top.png │ │ ├── footerbg.jpg │ │ ├── header.jpg │ │ ├── loadings │ │ │ └── loading-balls.svg │ │ ├── login_background.jpg │ │ ├── login_background_2.jpg │ │ ├── logo_jhe.png │ │ ├── nav-header.jpg │ │ └── success_checkout.jpg │ ├── index.php │ └── robots.txt │ ├── qlite │ ├── resources │ ├── css │ │ └── app.css │ ├── js │ │ ├── app.js │ │ ├── bootstrap.js │ │ └── components │ │ │ └── ExampleComponent.vue │ ├── sass │ │ ├── _variables.scss │ │ └── app.scss │ └── views │ │ ├── admin │ │ ├── change_password.blade.php │ │ └── home.blade.php │ │ ├── auth │ │ ├── login.blade.php │ │ ├── passwords │ │ │ ├── confirm.blade.php │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ ├── register.blade.php │ │ └── verify.blade.php │ │ ├── emails │ │ └── reset_password.blade.php │ │ ├── errors │ │ ├── 401.blade.php │ │ ├── 403.blade.php │ │ ├── 404.blade.php │ │ ├── 419.blade.php │ │ ├── 429.blade.php │ │ ├── 500.blade.php │ │ ├── 503.blade.php │ │ ├── illustrated-layout.blade.php │ │ ├── layout.blade.php │ │ └── minimal.blade.php │ │ ├── forgot_password.blade.php │ │ ├── layouts │ │ ├── admin.blade.php │ │ └── app.blade.php │ │ ├── recover_password.blade.php │ │ ├── recovered_password.blade.php │ │ ├── vendor │ │ ├── mail │ │ │ ├── html │ │ │ │ ├── button.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ ├── message.blade.php │ │ │ │ ├── panel.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── table.blade.php │ │ │ │ └── themes │ │ │ │ │ └── default.css │ │ │ └── text │ │ │ │ ├── button.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ ├── message.blade.php │ │ │ │ ├── panel.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ └── table.blade.php │ │ ├── notifications │ │ │ └── email.blade.php │ │ ├── pagination │ │ │ ├── bootstrap-4.blade.php │ │ │ ├── default.blade.php │ │ │ ├── semantic-ui.blade.php │ │ │ ├── simple-bootstrap-4.blade.php │ │ │ ├── simple-default.blade.php │ │ │ ├── simple-tailwind.blade.php │ │ │ └── tailwind.blade.php │ │ └── passport │ │ │ └── authorize.blade.php │ │ └── welcome.blade.php │ ├── routes │ ├── api.php │ ├── auth.php │ ├── channels.php │ ├── console.php │ └── web.php │ ├── tailwind.config.js │ ├── tests │ ├── CreatesApplication.php │ ├── Feature │ │ ├── Api │ │ │ └── Auth │ │ │ │ ├── LoginTest.php │ │ │ │ └── UserTest.php │ │ └── ExampleTest.php │ ├── Pest.php │ ├── TestCase.php │ └── Unit │ │ └── ExampleTest.php │ └── vite.config.js └── supervisor_admin_website └── src ├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── README.md ├── app ├── Classes │ ├── SSO │ │ ├── ProcessCallBack.php │ │ └── ProcessGetLogin.php │ ├── Utilities │ │ ├── DBGender.php │ │ ├── DBProviderCategory.php │ │ ├── DBProviderClassification.php │ │ ├── DBProviderStatus.php │ │ ├── DBStatus.php │ │ └── ResetMigrationTables.php │ └── Utils │ │ └── DefaultResponse.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Admin │ │ │ └── UsersController.php │ │ ├── AuthController.php │ │ ├── Controller.php │ │ ├── SiteController.php │ │ └── Traits │ │ │ ├── ProviderTable.php │ │ │ └── UserAdminTable.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ ├── ValidateSignature.php │ │ └── VerifyCsrfToken.php │ └── Requests │ │ └── GetSSOCallBackRequest.php ├── Models │ ├── UserAdmin.php │ └── UserAdminInfo.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php └── Services │ ├── AuthService.php │ └── AuthUserService.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── hashing.php ├── logging.php ├── mail.php ├── passport.php ├── queue.php ├── sanctum.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_09_11_000005_create_user_admins.php │ ├── 2014_10_12_000002_create_user_admin_infos.php │ ├── 2016_06_01_000001_create_oauth_auth_codes_table.php │ ├── 2016_06_01_000002_create_oauth_access_tokens_table.php │ ├── 2016_06_01_000003_create_oauth_refresh_tokens_table.php │ ├── 2016_06_01_000004_create_oauth_clients_table.php │ └── 2016_06_01_000005_create_oauth_personal_access_clients_table.php └── seeders │ └── DatabaseSeeder.php ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── assets │ └── txt │ │ ├── test_array.txt │ │ └── test_file.txt ├── favicon.ico ├── index.php └── robots.txt ├── resources ├── css │ └── app.css ├── js │ ├── app.js │ └── bootstrap.js └── views │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── tests ├── CreatesApplication.php ├── Feature │ ├── Auth │ │ └── LoginTest.php │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | /auth/src/node_modules 2 | /auth/src/public/hotjen 3 | /auth//docker_volumes 4 | /auth/src/storage 5 | /auth/src/storage/photos 6 | /auth/src/storage/temp 7 | /auth/src/storage/*.key 8 | /auth/src/vendor 9 | /auth/src/.phpunit.result.cache 10 | /auth/src/Homestead.json 11 | /auth/src/Homestead.yaml 12 | /auth/src/npm-debug.log 13 | /auth/src/yarn-error.log 14 | 15 | 16 | /supervisor_admin_website/src/node_modules 17 | /supervisor_admin_website/src/public/hotjen 18 | /supervisor_admin_website//docker_volumes 19 | /supervisor_admin_website/src/storage 20 | /supervisor_admin_website/src/storage/photos 21 | /supervisor_admin_website/src/storage/temp 22 | /supervisor_admin_website/src/storage/*.key 23 | /supervisor_admin_website/src/vendor 24 | /supervisor_admin_website/src/.phpunit.result.cache 25 | /supervisor_admin_website/src/Homestead.json 26 | /supervisor_admin_website/src/Homestead.yaml 27 | /supervisor_admin_website/src/npm-debug.log 28 | /supervisor_admin_website/src/yarn-error.log 29 | 30 | 31 | /.idea 32 | /.vscode 33 | -------------------------------------------------------------------------------- /auth/src/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /auth/src/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | /.github export-ignore 10 | CHANGELOG.md export-ignore 11 | .styleci.yml export-ignore 12 | -------------------------------------------------------------------------------- /auth/src/.gitignore: -------------------------------------------------------------------------------- 1 | /.phpunit.cache 2 | /node_modules 3 | /public/build 4 | /public/hot 5 | /public/storage 6 | /storage/*.key 7 | /vendor 8 | .env 9 | .env.backup 10 | .env.production 11 | .phpunit.result.cache 12 | Homestead.json 13 | Homestead.yaml 14 | auth.json 15 | npm-debug.log 16 | yarn-error.log 17 | /.fleet 18 | /.idea 19 | /.vscode 20 | -------------------------------------------------------------------------------- /auth/src/app/Classes/Auth/VerifyUserPassword.php: -------------------------------------------------------------------------------- 1 | handle($request , $type_access ); 11 | } 12 | 13 | private function handle($request , $type_access){ 14 | return $this->setToken($request , $type_access); 15 | } 16 | 17 | 18 | private function setToken($request , $type_access){ 19 | $http = new Guzzle; 20 | return $http->post('http://laravel_auth_sso_server:80/oauth/token', [ 21 | 'form_params' => [ 22 | 'grant_type' => 'password', 23 | 'client_id' => config('services.passport.password_id'), 24 | 'client_secret' => config('services.passport.password_secret'), 25 | 'username' => $request->email , 26 | 'password' => $request->password , 27 | 'scope' => '*' 28 | ] 29 | ]); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/DB/DBUserAdminArea.php: -------------------------------------------------------------------------------- 1 | 'supervisor area', 'url_title'=> 'supervisor', 'description'=>'supervisor area', 'url' => 'localhost:9000/login'] , 12 | ['title'=>'worker area', 'url_title'=> 'worker', 'description'=>'worker area', 'url' => 'localhost:9001/login'] , 13 | ]; 14 | 15 | 16 | /** 17 | * @return \string[][] 18 | */ 19 | public static function start_db() { 20 | return static::$start_db_data; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/DB/DBUserAdminRole.php: -------------------------------------------------------------------------------- 1 | 'admin', 'label'=>'Adminer'] , 14 | ['title'=>'worker', 'label'=>'Worker'] 15 | ]; 16 | 17 | 18 | /** 19 | * @return \string[][] 20 | */ 21 | public static function start_db() { 22 | return static::$start_db_data; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/CreateUserAdminRoles.php: -------------------------------------------------------------------------------- 1 | create($user_roler_field); 24 | } 25 | 26 | 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/CreateUserArea.php: -------------------------------------------------------------------------------- 1 | create($user_roler_field); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/ResizeImage.php: -------------------------------------------------------------------------------- 1 | resize($size, $size, function ($c) { 19 | $c->aspectRatio(); 20 | $c->upsize(); 21 | }); 22 | 23 | // insert resized image centered into background 24 | $background->insert($image, 'center'); 25 | 26 | // save or do whatever you like 27 | $background->save($newlocation); 28 | } 29 | 30 | 31 | } -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/AssociateBrokerToRealEstate.php: -------------------------------------------------------------------------------- 1 | select('user_id')->pluck('user_id')->toArray(); 17 | 18 | $user->AssociatedRealEstate()->attach($user_real_estate_ids[array_rand($user_real_estate_ids)]); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/ChangeConstructorUserName.php: -------------------------------------------------------------------------------- 1 | ConstructorInfo->id - 1; 21 | 22 | $user_constructor = UserConstructorInfo::find($user->ConstructorInfo->id); 23 | $user_constructor->company_name = $list[$order]['name']; 24 | $user_constructor->save(); 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/ChangeRealEstateUserName.php: -------------------------------------------------------------------------------- 1 | RealEstateInfo->id - 1; 20 | 21 | $user_real_estate = UserRealEstateInfo::find($user->RealEstateInfo->id); 22 | $user_real_estate->company_name = $list[$order]['name']; 23 | $user_real_estate->save(); 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/CreateUserImage.php: -------------------------------------------------------------------------------- 1 | createImage($images[array_rand($images)], $userAdmin, $gender); 17 | } 18 | 19 | 20 | // UPLOAD IMAGE 21 | public function createImage($list , UserAdmin $userAdmin, $gender ){ 22 | $newImageName = MakeFileName::encriptName($list["image"]); 23 | $oldlocation = public_path("/assets/create/users/" . $gender . "/" . $list["image"]); 24 | $newlocation = public_path($userAdmin->PathURL . "/" . $newImageName); 25 | 26 | // RELOCATE , THEN SAVE IN DB 27 | if(File::copy($oldlocation, $newlocation)){ 28 | $this->saveImageDB($userAdmin , $newImageName); 29 | } 30 | } 31 | 32 | 33 | public function saveImageDB(UserAdmin $userAdmin , $newImageName){ 34 | // CREATE IMAGE 35 | $userAdmin->ImageProfile()->create([ 'image' => $newImageName , 36 | 'user_ip' => 1 , 37 | 'user_id' => $userAdmin->id ]); 38 | 39 | } 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/MakeFolderName.php: -------------------------------------------------------------------------------- 1 | encode($user->id); 20 | 21 | // CHANGE FOLDER USER DB 22 | $this->changeFolderDBName($folder_name , $user); 23 | 24 | // MAKE FILE DIRECTORY 25 | $this->makeFileDirectory($user); 26 | } 27 | 28 | public function changeFolderDBName($folder_name , UserPub $user){ 29 | // change user folder name 30 | $user->folder = $folder_name; 31 | $user->code = $folder_name; 32 | $user->save(); 33 | } 34 | 35 | 36 | 37 | public function makeFileDirectory(UserPub $user){ 38 | // MAKE DIRECTORY IN BROKER FOLDDER 39 | File::makeDirectory( public_path($user->UserPubPathURL) , 0777, true); 40 | 41 | File::makeDirectory( public_path($user->UserPubPathProfileURL ) , 0777, true); 42 | File::makeDirectory( public_path($user->UserPubPatPropertiesURL) , 0777, true); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveAddress.php: -------------------------------------------------------------------------------- 1 | Address()->save( 18 | factory(UserAddress::class)->make() 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveBrokerRole.php: -------------------------------------------------------------------------------- 1 | roles()->sync( 16 | [0 => 2 ] 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveCompanyOwProfile.php: -------------------------------------------------------------------------------- 1 | CompanyOwProfile()->save( 17 | factory(UserCompanyOwProfile::class)->make() 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveConstructorInfo.php: -------------------------------------------------------------------------------- 1 | ConstructorInfo()->save( 18 | factory(UserConstructorInfo::class)->make() 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveConstructorRole.php: -------------------------------------------------------------------------------- 1 | roles()->sync( 16 | [0 => 3 ] 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveFemaleBrokerInfo.php: -------------------------------------------------------------------------------- 1 | BrokerInfo()->save( 21 | factory(UserBrokerInfo::class)->make(['name' => $faker->name('female'), 'gender' => 'female']) 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveMaleBrokerInfo.php: -------------------------------------------------------------------------------- 1 | BrokerInfo()->save( 21 | factory(UserBrokerInfo::class)->make(['name' => $faker->firstName('male'), 'gender' => 'male']) 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SavePresentationPhone.php: -------------------------------------------------------------------------------- 1 | Presentation->Phone()->save( 22 | factory(UserPresentationPhone::class)->make(['type' => $whats_app_values[array_rand($whats_app_values)] ]) 23 | ); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveRealEstateInfo.php: -------------------------------------------------------------------------------- 1 | RealEstateInfo()->save( 18 | factory(UserRealEstateInfo::class)->make() 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /auth/src/app/Classes/CreateDBSeed/User/User/SaveRealEstateRole.php: -------------------------------------------------------------------------------- 1 | roles()->sync( 16 | [0 => 1 ] 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /auth/src/app/Classes/Enums/StatusEnum.php: -------------------------------------------------------------------------------- 1 | 1 , 'title' => 'ativo' , 'value' => "active" , 'url_title' => 'ativo' ] , 11 | /* 2 */ [ 'id' => 2 , 'title' => 'inativo' , 'value' => "no_active" , 'url_title' => 'inativo' ] 12 | ]; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /auth/src/app/Classes/Utilities/DBUtility.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 16 | } 17 | 18 | /** 19 | * Register the commands for the application. 20 | */ 21 | protected function commands(): void 22 | { 23 | $this->load(__DIR__.'/Commands'); 24 | 25 | require base_path('routes/console.php'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /auth/src/app/Exceptions/StoreDataException.php: -------------------------------------------------------------------------------- 1 | message; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Admin/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 23 | } 24 | /** 25 | * @return \Illuminate\Http\JsonResponse 26 | */ 27 | public function index() 28 | { 29 | $user_id = Auth::user()->id; 30 | 31 | $access_area = UserAdminAccessArea::select('title', 'description', 'url') 32 | ->whereHas('Users', function ($query) use ($user_id) { 33 | $query->where('id', $user_id); 34 | })->get(); 35 | 36 | $user = UserAdmin::select([ 'id', 'status', 'email']) 37 | ->with(['AdminInfo' => function ($query) { 38 | $query->select('name', 'cpf', 'phone', 'last_name', 'user_id'); 39 | }])->where('id', $user_id)->first(); 40 | 41 | return view('admin/home', ['access_areas' => $access_area, 'user' => ['name' => $user->AdminInfo->name . " ". $user->AdminInfo->last_name, 'email' => $user->email] ]); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Admin/UsersController.php: -------------------------------------------------------------------------------- 1 | first(); 25 | if($accessArea) { 26 | return ListData::load($request, $accessArea); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/AuthenticatedSessionController.php: -------------------------------------------------------------------------------- 1 | authenticate(); 29 | 30 | $request->session()->regenerate(); 31 | 32 | return redirect()->intended(RouteServiceProvider::HOME); 33 | } 34 | 35 | /** 36 | * Destroy an authenticated session. 37 | */ 38 | public function destroy(Request $request): RedirectResponse 39 | { 40 | Auth::guard('web')->logout(); 41 | 42 | $request->session()->invalidate(); 43 | 44 | $request->session()->regenerateToken(); 45 | 46 | return redirect('/'); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/ConfirmablePasswordController.php: -------------------------------------------------------------------------------- 1 | validate([ 29 | 'email' => $request->user()->email, 30 | 'password' => $request->password, 31 | ])) { 32 | throw ValidationException::withMessages([ 33 | 'password' => __('auth.password'), 34 | ]); 35 | } 36 | 37 | $request->session()->put('auth.password_confirmed_at', time()); 38 | 39 | return redirect()->intended(RouteServiceProvider::HOME); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/EmailVerificationNotificationController.php: -------------------------------------------------------------------------------- 1 | user()->hasVerifiedEmail()) { 18 | return redirect()->intended(RouteServiceProvider::HOME); 19 | } 20 | 21 | $request->user()->sendEmailVerificationNotification(); 22 | 23 | return back()->with('status', 'verification-link-sent'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/EmailVerificationPromptController.php: -------------------------------------------------------------------------------- 1 | user()->hasVerifiedEmail() 19 | ? redirect()->intended(RouteServiceProvider::HOME) 20 | : view('auth.verify-email'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/PasswordController.php: -------------------------------------------------------------------------------- 1 | validateWithBag('updatePassword', [ 19 | 'current_password' => ['required', 'current_password'], 20 | 'password' => ['required', Password::defaults(), 'confirmed'], 21 | ]); 22 | 23 | $request->user()->update([ 24 | 'password' => Hash::make($validated['password']), 25 | ]); 26 | 27 | return back()->with('status', 'password-updated'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/PasswordResetLinkController.php: -------------------------------------------------------------------------------- 1 | validate([ 29 | 'email' => ['required', 'email'], 30 | ]); 31 | 32 | // We will send the password reset link to this user. Once we have attempted 33 | // to send the link, we will examine the response then see the message we 34 | // need to show to the user. Finally, we'll send out a proper response. 35 | $status = Password::sendResetLink( 36 | $request->only('email') 37 | ); 38 | 39 | return $status == Password::RESET_LINK_SENT 40 | ? back()->with('status', __($status)) 41 | : back()->withInput($request->only('email')) 42 | ->withErrors(['email' => __($status)]); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Auth/VerifyEmailController.php: -------------------------------------------------------------------------------- 1 | user()->hasVerifiedEmail()) { 19 | return redirect()->intended(RouteServiceProvider::HOME.'?verified=1'); 20 | } 21 | 22 | if ($request->user()->markEmailAsVerified()) { 23 | event(new Verified($request->user())); 24 | } 25 | 26 | return redirect()->intended(RouteServiceProvider::HOME.'?verified=1'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | middleware(function ($request, $next) { 24 | $this->user = Auth::user(); 25 | return $next($request); 26 | }); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/ProfileController.php: -------------------------------------------------------------------------------- 1 | away('http://localhost:9000'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/SiteController.php: -------------------------------------------------------------------------------- 1 | json(['test connection auth']); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /auth/src/app/Http/Controllers/Traits/UserAdminTable.php: -------------------------------------------------------------------------------- 1 | user_id == $user->id; 15 | } 16 | 17 | /** 18 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo 19 | */ 20 | public function User() { 21 | return $this->belongsTo(UserAdmin::class, 'user_id'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson() ? null : route('login'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/MustBeAdminstrator.php: -------------------------------------------------------------------------------- 1 | user(); 19 | if($user){ 20 | return $next($request); 21 | } 22 | return redirect('/login'); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 24 | return redirect(RouteServiceProvider::HOME); 25 | } 26 | } 27 | 28 | return $next($request); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts(): array 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/ValidateSignature.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 'fbclid', 16 | // 'utm_campaign', 17 | // 'utm_content', 18 | // 'utm_medium', 19 | // 'utm_source', 20 | // 'utm_term', 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /auth/src/app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /auth/src/app/Http/Requests/Admin/UpdatePasswordRequest.php: -------------------------------------------------------------------------------- 1 | ['required' , new VerifyUserPassword(Auth::user()) ], 30 | 'password' => 'required|min:6|max:32', 31 | 'password_confirmation' => 'required|same:password', 32 | ]; 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /auth/src/app/Http/Requests/AuthApiRequest.php: -------------------------------------------------------------------------------- 1 | 'required|email', 19 | 'password' => 'required', 20 | 'device_name' => 'required', 21 | ]; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /auth/src/app/Http/Requests/ChangeUserPasswordRequest.php: -------------------------------------------------------------------------------- 1 | redirect = url()->previous(); 29 | return [ 30 | 'password' => 'required|min:6|max:32', 31 | 'password_confirmation' => 'required|same:password', 32 | 'token' => new VerifyTokenExist 33 | ]; 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /auth/src/app/Http/Requests/LoginRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 26 | 'password' => 'required|min:3|max:30', 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /auth/src/app/Http/Requests/SendLinkResetPassRequest.php: -------------------------------------------------------------------------------- 1 | redirect = url()->previous(); 29 | return [ 30 | 'email_cpf' => ['required' , new ValidateEmailExist ] 31 | ]; 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /auth/src/app/Http/Rules/Admin/VerifyUserPassword.php: -------------------------------------------------------------------------------- 1 | user = $user; 20 | } 21 | 22 | /** 23 | * Determine if the validation rule passes. 24 | * 25 | * @param string $attribute 26 | * @param mixed $value 27 | * @return bool 28 | */ 29 | public function passes($attribute, $value) 30 | { 31 | if (! Hash::check($value , $this->user->password)){ 32 | return false; 33 | } 34 | 35 | 36 | return true; 37 | } 38 | 39 | /** 40 | * Get the validation error message. 41 | * 42 | * @return string 43 | */ 44 | public function message() 45 | { 46 | return 'A Senha Não Confere com a Senha Antiga'; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /auth/src/app/Http/Rules/Cpf.php: -------------------------------------------------------------------------------- 1 | translate(); 20 | return; 21 | } 22 | 23 | for ($position = 10, $sum = 0, $index = 0; $position >= 2; $sum += $cpf[$index++] * $position--); 24 | if ($cpf[9] != ((($sum %= 11) < 2) ? 0 : 11 - $sum)) { 25 | $fail('validation.cpf.invalid')->translate(); 26 | return; 27 | } 28 | 29 | for ($position = 11, $sum = 0, $index = 0; $position >= 2; $sum += $cpf[$index++] * $position--); 30 | if ($cpf[10] != ((($sum %= 11) < 2) ? 0 : 11 - $sum)) { 31 | $fail('validation.cpf.invalid')->translate(); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /auth/src/app/Http/Rules/VerifyTokenExist.php: -------------------------------------------------------------------------------- 1 | first(); 33 | 34 | if(!$userHasToken) { 35 | return false; 36 | } 37 | 38 | return true; 39 | 40 | } 41 | 42 | /** 43 | * Get the validation error message. 44 | * 45 | * @return string 46 | */ 47 | public function message() 48 | { 49 | return 'Token Inválido . Tente Novamente .'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /auth/src/app/Models/User.php: -------------------------------------------------------------------------------- 1 | 19 | */ 20 | protected $table = 'users'; 21 | protected $fillable = [ 22 | 'name', 23 | 'email', 24 | 'password', 25 | ]; 26 | 27 | /** 28 | * The attributes that should be hidden for serialization. 29 | * 30 | * @var array 31 | */ 32 | protected $hidden = [ 33 | 'password', 34 | 'remember_token', 35 | ]; 36 | 37 | /** 38 | * The attributes that should be cast. 39 | * 40 | * @var array 41 | */ 42 | protected $casts = [ 43 | 'email_verified_at' => 'datetime', 44 | 'password' => 'hashed', 45 | ]; 46 | } 47 | -------------------------------------------------------------------------------- /auth/src/app/Models/UserAdminAccessArea.php: -------------------------------------------------------------------------------- 1 | belongsToMany(UserAdmin::class , 'user_admin_user_admin_access_areas' , 'area_id' , 'user_id'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /auth/src/app/Models/UserAdminInfo.php: -------------------------------------------------------------------------------- 1 | belongsToMany(UserAdmin::class , 'user_user_admin_roles' , 'role_id' , 'user_id'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /auth/src/app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | protected $policies = [ 17 | // 18 | ]; 19 | 20 | /** 21 | * Register any authentication / authorization services. 22 | */ 23 | public function boot(): void 24 | { 25 | $this->registerPolicies(); 26 | Passport::ignoreRoutes(); 27 | 28 | Passport::tokensExpireIn(now()->addDay(1)); 29 | Passport::refreshTokensExpireIn(now()->addDay(30)); 30 | Passport::personalAccessTokensExpireIn(now()->addMonth(6)); 31 | 32 | Passport::tokensCan([ 33 | 'access-supervisor-area' => 'Access Supervisor Area' 34 | ]); 35 | 36 | /* Passport::tokensCan([ 37 | 'view-user' => 'View User Information' 38 | ]);*/ 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /auth/src/app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | */ 26 | public function boot(): void 27 | { 28 | // 29 | } 30 | 31 | /** 32 | * Determine if events and listeners should be automatically discovered. 33 | */ 34 | public function shouldDiscoverEvents(): bool 35 | { 36 | return false; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /auth/src/app/Traits/ApiResponse.php: -------------------------------------------------------------------------------- 1 | json($data, $code); 11 | } 12 | public function validResponse($data, $code = Response::HTTP_OK) 13 | { 14 | return response()->json(['data' => $data], $code); 15 | } 16 | 17 | public function errorResponse($message, $code = Response::HTTP_BAD_REQUEST) 18 | { 19 | return response()->json(['message' => $message, 'code' => $code], $code); 20 | //return response()->json(['error' => $message, 'code' => $code], $code); 21 | } 22 | public function errorMessage($message, $code) 23 | { 24 | return response($message, $code)->header('Content-Type', 'application/json'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /auth/src/app/View/Components/AppLayout.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | ]; 34 | -------------------------------------------------------------------------------- /auth/src/config/hashids.php: -------------------------------------------------------------------------------- 1 | 'main', 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Hashids Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here are each of the connections setup for your application. Example 24 | | configuration has been included, but you may add as many connections as 25 | | you would like. 26 | | 27 | */ 28 | 29 | 'connections' => [ 30 | 31 | 'main' => [ 32 | 'salt' => '', 33 | 'length' => 0, 34 | // 'alphabet' => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' 35 | ], 36 | 'alternative' => [ 37 | 'salt' => 'your-salt-string', 38 | 'length' => 'your-length-integer', 39 | // 'alphabet' => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' 40 | ], 41 | 'user_folder' => [ 42 | 'salt' => 'qwertyiopasdfghjkllzxcvbnm123456789', 43 | 'length' => 8, 44 | ], 45 | 46 | ], 47 | 48 | ]; 49 | -------------------------------------------------------------------------------- /auth/src/config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /auth/src/database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /auth/src/database/factories/UserAdminAccessAreaFactory.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class UserAdminAccessAreaFactory extends Factory 11 | { 12 | /** 13 | * Define the model's default state. 14 | * 15 | * @return array 16 | */ 17 | public function definition() 18 | { 19 | return [ 20 | 'url' => 1, 21 | 'title' => 1, 22 | 'description' => 1 23 | ]; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /auth/src/database/factories/UserAdminFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->unique()->safeEmail, 29 | 'password' => Hash::make('123456') , 30 | 'remember_token' => Str::random(10), 31 | 'folder' => $this->faker->unique()->word(), 32 | 'status' => $this->faker->randomElement(DBStatus::all())['value'] 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /auth/src/database/factories/UserAdminInfoFactory.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class UserAdminInfoFactory extends Factory 11 | { 12 | /** 13 | * Define the model's default state. 14 | * 15 | * @return array 16 | */ 17 | public function definition() 18 | { 19 | return [ 20 | 'name' => $this->faker->unique()->word(), 21 | 'last_name' => $this->faker->lastName(), 22 | 'phone' => $this->faker->phoneNumber, 23 | 'cpf' => $this->faker->unique()->numberBetween(1,400), 24 | 'user_id' => 1 25 | ]; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /auth/src/database/factories/UserAdminRoleFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->unique()->word() , 26 | 'label' => $this->faker->unique()->word() 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /auth/src/database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->name(), 19 | 'email' => $this->faker->unique()->safeEmail(), 20 | 'email_verified_at' => now(), 21 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 22 | 'remember_token' => Str::random(10), 23 | ]; 24 | } 25 | 26 | /** 27 | * Indicate that the model's email address should be unverified. 28 | * 29 | * @return \Illuminate\Database\Eloquent\Factories\Factory 30 | */ 31 | public function unverified() 32 | { 33 | return $this->state(function (array $attributes) { 34 | return [ 35 | 'email_verified_at' => null, 36 | ]; 37 | }); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2014_09_11_000005_create_user_admins.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 19 | 20 | $table->bigIncrements('id'); 21 | $table->string('email')->unique(); 22 | $table->string('password'); 23 | $table->rememberToken(); 24 | 25 | $table->enum('status', ['active', 'no_active' ])->default('active'); 26 | $table->string('folder' , '60')->nullable(); 27 | 28 | $table->timestamps(); 29 | 30 | $table->softDeletes(); 31 | }); 32 | } 33 | 34 | /** 35 | * Reverse the migrations. 36 | * 37 | * @return void 38 | */ 39 | public function down() 40 | { 41 | Schema::dropIfExists('user_admins'); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2014_09_11_000006_create_user_admin_roles.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 19 | 20 | $table->increments('id'); 21 | // $table->string('title', 40)->unique(); 22 | $table->string('title', 40); 23 | // $table->string('label', 300)->unique(); 24 | $table->string('label', 300); 25 | 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::defaultStringLength(191); 38 | Schema::dropIfExists('user_admin_roles'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2014_09_11_000007_create_user_user_admin_roles.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 19 | 20 | $table->bigInteger('user_id')->unsigned()->index(); 21 | $table->foreign('user_id')->references('id')->on('user_admins')->onDelete('cascade'); 22 | 23 | $table->integer('role_id')->unsigned()->index(); 24 | $table->foreign('role_id')->references('id')->on('user_admin_roles')->onDelete('cascade'); 25 | 26 | // $table->unique(['user_id','role_id']); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::table('user_user_admin_roles', function(Blueprint $table){ 38 | $table->dropForeign('user_user_admin_roles_user_id_foreign'); 39 | $table->dropForeign('user_user_admin_roles_role_id_foreign'); 40 | }); 41 | 42 | Schema::dropIfExists('user_user_admin_roles'); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 19 | $table->string('name'); 20 | //$table->string('email')->unique(); 21 | $table->string('email'); 22 | $table->timestamp('email_verified_at')->nullable(); 23 | $table->string('password'); 24 | $table->rememberToken(); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('users'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2014_10_12_000002_create_user_admin_infos.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 19 | 20 | $table->bigIncrements('id'); 21 | 22 | $table->bigInteger('user_id')->unsigned(); 23 | $table->foreign('user_id')->references('id')->on('user_admins')->onDelete('cascade'); 24 | 25 | $table->string('cpf'); 26 | // $table->string('cpf')->unique(); 27 | 28 | $table->string('name'); 29 | $table->string('last_name')->nullable(); 30 | $table->string('phone')->nullable(); 31 | 32 | 33 | 34 | $table->timestamps(); 35 | }); 36 | } 37 | 38 | /** 39 | * Reverse the migrations. 40 | * 41 | * @return void 42 | */ 43 | public function down() 44 | { 45 | Schema::table('user_admin_infos', function(Blueprint $table){ 46 | $table->dropForeign('user_admin_infos_user_id_foreign'); 47 | }); 48 | 49 | 50 | Schema::dropIfExists('user_admin_infos'); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php: -------------------------------------------------------------------------------- 1 | string('id', 100)->primary(); 16 | $table->unsignedBigInteger('user_id')->index(); 17 | $table->uuid('client_id'); 18 | $table->text('scopes')->nullable(); 19 | $table->boolean('revoked'); 20 | $table->dateTime('expires_at')->nullable(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | */ 27 | public function down(): void 28 | { 29 | Schema::dropIfExists('oauth_auth_codes'); 30 | } 31 | }; 32 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | string('id', 100)->primary(); 16 | $table->unsignedBigInteger('user_id')->nullable()->index(); 17 | $table->uuid('client_id'); 18 | $table->string('name')->nullable(); 19 | $table->text('scopes')->nullable(); 20 | $table->boolean('revoked'); 21 | $table->timestamps(); 22 | $table->dateTime('expires_at')->nullable(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('oauth_access_tokens'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php: -------------------------------------------------------------------------------- 1 | string('id', 100)->primary(); 16 | $table->string('access_token_id', 100)->index(); 17 | $table->boolean('revoked'); 18 | $table->dateTime('expires_at')->nullable(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | */ 25 | public function down(): void 26 | { 27 | Schema::dropIfExists('oauth_refresh_tokens'); 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2016_06_01_000004_create_oauth_clients_table.php: -------------------------------------------------------------------------------- 1 | uuid('id')->primary(); 16 | $table->unsignedBigInteger('user_id')->nullable()->index(); 17 | $table->string('name'); 18 | $table->string('secret', 100)->nullable(); 19 | $table->string('provider')->nullable(); 20 | $table->text('redirect'); 21 | $table->boolean('personal_access_client'); 22 | $table->boolean('password_client'); 23 | $table->boolean('revoked'); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | */ 31 | public function down(): void 32 | { 33 | Schema::dropIfExists('oauth_clients'); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 16 | $table->uuid('client_id'); 17 | $table->timestamps(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::dropIfExists('oauth_personal_access_clients'); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('uuid')->unique(); 17 | $table->text('connection'); 18 | $table->text('queue'); 19 | $table->longText('payload'); 20 | $table->longText('exception'); 21 | $table->timestamp('failed_at')->useCurrent(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | */ 28 | public function down(): void 29 | { 30 | Schema::dropIfExists('failed_jobs'); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->morphs('tokenable'); 17 | $table->string('name'); 18 | $table->string('token', 64)->unique(); 19 | $table->text('abilities')->nullable(); 20 | $table->timestamp('last_used_at')->nullable(); 21 | $table->timestamp('expires_at')->nullable(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('personal_access_tokens'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2022_06_22_224810_create_user_admin_access_areas_table.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 19 | $table->increments('id'); 20 | $table->string('title', 40)->unique(); 21 | $table->string('url_title', 40)->unique(); 22 | $table->text('description'); 23 | $table->text('image')->nullable(); 24 | $table->string('url', 300); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('user_admin_access_areas'); 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2022_06_22_224837_create_user_admin_user_admin_access_areas_table.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 19 | 20 | $table->bigInteger('user_id')->unsigned()->index(); 21 | $table->foreign('user_id')->references('id')->on('user_admins')->onDelete('cascade'); 22 | 23 | $table->integer('area_id')->unsigned()->index(); 24 | $table->foreign('area_id')->references('id')->on('user_admin_access_areas')->onDelete('cascade'); 25 | 26 | // $table->unique(['user_id','area_id']); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::table('user_admin_user_admin_access_areas', function(Blueprint $table){ 38 | $table->dropForeign('user_admin_user_admin_access_areas_user_id_foreign'); 39 | $table->dropForeign('user_admin_user_admin_access_areas_area_id_foreign'); 40 | }); 41 | Schema::dropIfExists('user_admin_user_admin_access_areas'); 42 | } 43 | }; 44 | -------------------------------------------------------------------------------- /auth/src/database/migrations/2022_07_08_195530_create_user_admin_managers_table.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 18 | 19 | $table->bigInteger('user_id')->unsigned()->index(); 20 | $table->foreign('user_id')->references('id')->on('user_admins')->onDelete('cascade'); 21 | 22 | $table->integer('area_id')->unsigned()->index(); 23 | $table->foreign('area_id')->references('id')->on('user_admin_access_areas')->onDelete('cascade'); 24 | 25 | // $table->unique(['user_id','area_id']); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::table('user_admin_managers', function(Blueprint $table){ 37 | $table->dropForeign('user_admin_managers_user_id_foreign'); 38 | $table->dropForeign('user_admin_managers_area_id_foreign'); 39 | }); 40 | Schema::dropIfExists('user_admin_managers'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /auth/src/database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | handle(); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /auth/src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "type": "module", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build" 7 | }, 8 | "devDependencies": { 9 | "@popperjs/core": "^2.11.6", 10 | "@tailwindcss/forms": "^0.5.2", 11 | "@vitejs/plugin-vue": "^4.5.0", 12 | "alpinejs": "^3.4.2", 13 | "autoprefixer": "^10.4.2", 14 | "axios": "^1.6.1", 15 | "bootstrap": "^5.2.3", 16 | "laravel-vite-plugin": "^1.0.0", 17 | "postcss": "^8.4.31", 18 | "sass": "^1.56.1", 19 | "tailwindcss": "^3.1.0", 20 | "vite": "^5.0.0", 21 | "vue": "^3.2.37" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /auth/src/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | tests/Unit 10 | 11 | 12 | tests/Feature 13 | 14 | 15 | 16 | 17 | app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /auth/src/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /auth/src/public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /auth/src/public/assets/images/profile.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/assets/images/profile.jpeg -------------------------------------------------------------------------------- /auth/src/public/assets/images/profile_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/assets/images/profile_1.jpg -------------------------------------------------------------------------------- /auth/src/public/assets/images/profile_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/assets/images/profile_2.jpg -------------------------------------------------------------------------------- /auth/src/public/assets/images/profile_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/assets/images/profile_3.jpg -------------------------------------------------------------------------------- /auth/src/public/assets/txt/test_array.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/assets/txt/test_array.txt -------------------------------------------------------------------------------- /auth/src/public/assets/txt/test_file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/assets/txt/test_file.txt -------------------------------------------------------------------------------- /auth/src/public/css/components/loading.css: -------------------------------------------------------------------------------- 1 | /* ------------------------------loading */ 2 | .loading_bg { 3 | /* background: rgba(0,0,0,0.4) !important;*/ 4 | min-height: 100%; 5 | width:100vw; 6 | position: absolute; 7 | z-index:99999; 8 | } 9 | .loading_bg .mloading-bar { 10 | width: 250px; 11 | min-height: 22px; 12 | text-align: center; 13 | position: absolute; 14 | top: calc(50% - 100px) !important; 15 | left:calc(50% - 170px)!important; 16 | } 17 | 18 | .loading_bg_side { 19 | /* background: rgba(0,0,0,0.4) !important;*/ 20 | width:100%; 21 | position: absolute; 22 | z-index:99999; 23 | } 24 | .loading_bg_side .mloading-bar { 25 | width: 250px; 26 | min-height: 22px; 27 | text-align: center; 28 | position: absolute; 29 | top: 200px !important; 30 | left:calc(50% - 170px)!important; 31 | } 32 | 33 | .loading_bg p,.loading_bg_side p { 34 | font-size:18px; 35 | font-family:EffraLt, Helvetica, Arial, Sans-Serif; 36 | text-align:center; 37 | padding:30px; 38 | display:block; 39 | color:#000; 40 | } 41 | 42 | .displayisLoading { 43 | opacity: 0.3; 44 | } 45 | 46 | 47 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/HELP-US-OUT.txt: -------------------------------------------------------------------------------- 1 | I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project, 2 | Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome, 3 | comprehensive icon sets or copy and paste your own. 4 | 5 | Please. Check it out. 6 | 7 | -Dave Gandy 8 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/css/font-awesome-4.7.0/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/css/font-awesome-4.7.0/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/animated.less: -------------------------------------------------------------------------------- 1 | // Animated Icons 2 | // -------------------------- 3 | 4 | .@{fa-css-prefix}-spin { 5 | -webkit-animation: fa-spin 2s infinite linear; 6 | animation: fa-spin 2s infinite linear; 7 | } 8 | 9 | .@{fa-css-prefix}-pulse { 10 | -webkit-animation: fa-spin 1s infinite steps(8); 11 | animation: fa-spin 1s infinite steps(8); 12 | } 13 | 14 | @-webkit-keyframes fa-spin { 15 | 0% { 16 | -webkit-transform: rotate(0deg); 17 | transform: rotate(0deg); 18 | } 19 | 100% { 20 | -webkit-transform: rotate(359deg); 21 | transform: rotate(359deg); 22 | } 23 | } 24 | 25 | @keyframes fa-spin { 26 | 0% { 27 | -webkit-transform: rotate(0deg); 28 | transform: rotate(0deg); 29 | } 30 | 100% { 31 | -webkit-transform: rotate(359deg); 32 | transform: rotate(359deg); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/bordered-pulled.less: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em @fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .@{fa-css-prefix}-pull-left { float: left; } 11 | .@{fa-css-prefix}-pull-right { float: right; } 12 | 13 | .@{fa-css-prefix} { 14 | &.@{fa-css-prefix}-pull-left { margin-right: .3em; } 15 | &.@{fa-css-prefix}-pull-right { margin-left: .3em; } 16 | } 17 | 18 | /* Deprecated as of 4.4.0 */ 19 | .pull-right { float: right; } 20 | .pull-left { float: left; } 21 | 22 | .@{fa-css-prefix} { 23 | &.pull-left { margin-right: .3em; } 24 | &.pull-right { margin-left: .3em; } 25 | } 26 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/core.less: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix} { 5 | display: inline-block; 6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .@{fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/font-awesome.less: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "variables.less"; 7 | @import "mixins.less"; 8 | @import "path.less"; 9 | @import "core.less"; 10 | @import "larger.less"; 11 | @import "fixed-width.less"; 12 | @import "list.less"; 13 | @import "bordered-pulled.less"; 14 | @import "animated.less"; 15 | @import "rotated-flipped.less"; 16 | @import "stacked.less"; 17 | @import "icons.less"; 18 | @import "screen-reader.less"; 19 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/larger.less: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .@{fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .@{fa-css-prefix}-2x { font-size: 2em; } 11 | .@{fa-css-prefix}-3x { font-size: 3em; } 12 | .@{fa-css-prefix}-4x { font-size: 4em; } 13 | .@{fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/list.less: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: @fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .@{fa-css-prefix}-li { 11 | position: absolute; 12 | left: -@fa-li-width; 13 | width: @fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.@{fa-css-prefix}-lg { 17 | left: (-@fa-li-width + (4em / 14)); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/path.less: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'FontAwesome'; 6 | src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}'); 7 | src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'), 8 | url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'), 9 | url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'), 10 | url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'), 11 | url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg'); 12 | // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/rotated-flipped.less: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); } 5 | .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); } 6 | .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); } 7 | 8 | .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); } 9 | .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .@{fa-css-prefix}-rotate-90, 15 | :root .@{fa-css-prefix}-rotate-180, 16 | :root .@{fa-css-prefix}-rotate-270, 17 | :root .@{fa-css-prefix}-flip-horizontal, 18 | :root .@{fa-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/screen-reader.less: -------------------------------------------------------------------------------- 1 | // Screen Readers 2 | // ------------------------- 3 | 4 | .sr-only { .sr-only(); } 5 | .sr-only-focusable { .sr-only-focusable(); } 6 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/less/stacked.less: -------------------------------------------------------------------------------- 1 | // Stacked Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-stack { 5 | position: relative; 6 | display: inline-block; 7 | width: 2em; 8 | height: 2em; 9 | line-height: 2em; 10 | vertical-align: middle; 11 | } 12 | .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x { 13 | position: absolute; 14 | left: 0; 15 | width: 100%; 16 | text-align: center; 17 | } 18 | .@{fa-css-prefix}-stack-1x { line-height: inherit; } 19 | .@{fa-css-prefix}-stack-2x { font-size: 2em; } 20 | .@{fa-css-prefix}-inverse { color: @fa-inverse; } 21 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_animated.scss: -------------------------------------------------------------------------------- 1 | // Spinning Icons 2 | // -------------------------- 3 | 4 | .#{$fa-css-prefix}-spin { 5 | -webkit-animation: fa-spin 2s infinite linear; 6 | animation: fa-spin 2s infinite linear; 7 | } 8 | 9 | .#{$fa-css-prefix}-pulse { 10 | -webkit-animation: fa-spin 1s infinite steps(8); 11 | animation: fa-spin 1s infinite steps(8); 12 | } 13 | 14 | @-webkit-keyframes fa-spin { 15 | 0% { 16 | -webkit-transform: rotate(0deg); 17 | transform: rotate(0deg); 18 | } 19 | 100% { 20 | -webkit-transform: rotate(359deg); 21 | transform: rotate(359deg); 22 | } 23 | } 24 | 25 | @keyframes fa-spin { 26 | 0% { 27 | -webkit-transform: rotate(0deg); 28 | transform: rotate(0deg); 29 | } 30 | 100% { 31 | -webkit-transform: rotate(359deg); 32 | transform: rotate(359deg); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_bordered-pulled.scss: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em $fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .#{$fa-css-prefix}-pull-left { float: left; } 11 | .#{$fa-css-prefix}-pull-right { float: right; } 12 | 13 | .#{$fa-css-prefix} { 14 | &.#{$fa-css-prefix}-pull-left { margin-right: .3em; } 15 | &.#{$fa-css-prefix}-pull-right { margin-left: .3em; } 16 | } 17 | 18 | /* Deprecated as of 4.4.0 */ 19 | .pull-right { float: right; } 20 | .pull-left { float: left; } 21 | 22 | .#{$fa-css-prefix} { 23 | &.pull-left { margin-right: .3em; } 24 | &.pull-right { margin-left: .3em; } 25 | } 26 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_core.scss: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix} { 5 | display: inline-block; 6 | font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_fixed-width.scss: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .#{$fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_larger.scss: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .#{$fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .#{$fa-css-prefix}-2x { font-size: 2em; } 11 | .#{$fa-css-prefix}-3x { font-size: 3em; } 12 | .#{$fa-css-prefix}-4x { font-size: 4em; } 13 | .#{$fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_list.scss: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: $fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .#{$fa-css-prefix}-li { 11 | position: absolute; 12 | left: -$fa-li-width; 13 | width: $fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.#{$fa-css-prefix}-lg { 17 | left: -$fa-li-width + (4em / 14); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_path.scss: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'FontAwesome'; 6 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}'); 7 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'), 8 | url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'), 9 | url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'), 10 | url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'), 11 | url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg'); 12 | // src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_rotated-flipped.scss: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); } 5 | .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); } 6 | .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); } 7 | 8 | .#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); } 9 | .#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .#{$fa-css-prefix}-rotate-90, 15 | :root .#{$fa-css-prefix}-rotate-180, 16 | :root .#{$fa-css-prefix}-rotate-270, 17 | :root .#{$fa-css-prefix}-flip-horizontal, 18 | :root .#{$fa-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_screen-reader.scss: -------------------------------------------------------------------------------- 1 | // Screen Readers 2 | // ------------------------- 3 | 4 | .sr-only { @include sr-only(); } 5 | .sr-only-focusable { @include sr-only-focusable(); } 6 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/_stacked.scss: -------------------------------------------------------------------------------- 1 | // Stacked Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-stack { 5 | position: relative; 6 | display: inline-block; 7 | width: 2em; 8 | height: 2em; 9 | line-height: 2em; 10 | vertical-align: middle; 11 | } 12 | .#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x { 13 | position: absolute; 14 | left: 0; 15 | width: 100%; 16 | text-align: center; 17 | } 18 | .#{$fa-css-prefix}-stack-1x { line-height: inherit; } 19 | .#{$fa-css-prefix}-stack-2x { font-size: 2em; } 20 | .#{$fa-css-prefix}-inverse { color: $fa-inverse; } 21 | -------------------------------------------------------------------------------- /auth/src/public/css/font-awesome-4.7.0/scss/font-awesome.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "variables"; 7 | @import "mixins"; 8 | @import "path"; 9 | @import "core"; 10 | @import "larger"; 11 | @import "fixed-width"; 12 | @import "list"; 13 | @import "bordered-pulled"; 14 | @import "animated"; 15 | @import "rotated-flipped"; 16 | @import "stacked"; 17 | @import "icons"; 18 | @import "screen-reader"; 19 | -------------------------------------------------------------------------------- /auth/src/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/favicon.ico -------------------------------------------------------------------------------- /auth/src/public/fonts/DroidSans.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/DroidSans.eot -------------------------------------------------------------------------------- /auth/src/public/fonts/DroidSans.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/DroidSans.otf -------------------------------------------------------------------------------- /auth/src/public/fonts/DroidSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/DroidSans.ttf -------------------------------------------------------------------------------- /auth/src/public/fonts/DroidSans.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/DroidSans.woff -------------------------------------------------------------------------------- /auth/src/public/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /auth/src/public/fonts/PTC55F.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTC55F.eot -------------------------------------------------------------------------------- /auth/src/public/fonts/PTC55F.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTC55F.otf -------------------------------------------------------------------------------- /auth/src/public/fonts/PTC55F.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTC55F.ttf -------------------------------------------------------------------------------- /auth/src/public/fonts/PTC55F.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTC55F.woff -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS55F.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS55F.eot -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS55F.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS55F.otf -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS55F.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS55F.ttf -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS55F.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS55F.woff -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS75F.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS75F.eot -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS75F.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS75F.otf -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS75F.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS75F.ttf -------------------------------------------------------------------------------- /auth/src/public/fonts/PTS75F.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/PTS75F.woff -------------------------------------------------------------------------------- /auth/src/public/fonts/fontawesome-webfont(1).eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/fontawesome-webfont(1).eot -------------------------------------------------------------------------------- /auth/src/public/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /auth/src/public/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /auth/src/public/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /auth/src/public/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /auth/src/public/images/adm/bgtopboxhome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/bgtopboxhome.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/bldisplay_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/bldisplay_1.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/bldisplay_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/bldisplay_2.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/bldisplay_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/bldisplay_3.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/bldisplay_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/bldisplay_3.png -------------------------------------------------------------------------------- /auth/src/public/images/adm/checkfeatures1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/checkfeatures1.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconpropdt1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconpropdt1.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconpropdt2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconpropdt2.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconpropdt3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconpropdt3.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconpropdt4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconpropdt4.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconsdprop1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconsdprop1.png -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconsdprop2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconsdprop2.png -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconsdprop3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconsdprop3.png -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconspds_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconspds_1.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconspds_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconspds_2.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconspds_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconspds_3.jpg -------------------------------------------------------------------------------- /auth/src/public/images/adm/iconspds_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/adm/iconspds_4.jpg -------------------------------------------------------------------------------- /auth/src/public/images/arrowup.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/arrowup.gif -------------------------------------------------------------------------------- /auth/src/public/images/arrowup_wight.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/arrowup_wight.gif -------------------------------------------------------------------------------- /auth/src/public/images/arrowup_wight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/arrowup_wight.png -------------------------------------------------------------------------------- /auth/src/public/images/bgulnav1top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/bgulnav1top.png -------------------------------------------------------------------------------- /auth/src/public/images/footerbg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/footerbg.jpg -------------------------------------------------------------------------------- /auth/src/public/images/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/header.jpg -------------------------------------------------------------------------------- /auth/src/public/images/loadings/loading-balls.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /auth/src/public/images/login_background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/login_background.jpg -------------------------------------------------------------------------------- /auth/src/public/images/login_background_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/login_background_2.jpg -------------------------------------------------------------------------------- /auth/src/public/images/logo_jhe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/logo_jhe.png -------------------------------------------------------------------------------- /auth/src/public/images/nav-header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/nav-header.jpg -------------------------------------------------------------------------------- /auth/src/public/images/success_checkout.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/public/images/success_checkout.jpg -------------------------------------------------------------------------------- /auth/src/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /auth/src/qlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/qlite -------------------------------------------------------------------------------- /auth/src/resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/auth/src/resources/css/app.css -------------------------------------------------------------------------------- /auth/src/resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | window._ = require('lodash'); 2 | 3 | try { 4 | require('bootstrap'); 5 | } catch (e) {} 6 | 7 | /** 8 | * We'll load the axios HTTP library which allows us to easily issue requests 9 | * to our Laravel back-end. This library automatically handles sending the 10 | * CSRF token as a header based on the value of the "XSRF" token cookie. 11 | */ 12 | 13 | window.axios = require('axios'); 14 | 15 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 16 | 17 | /** 18 | * Echo exposes an expressive API for subscribing to channels and listening 19 | * for events that are broadcast by Laravel. Echo and event broadcasting 20 | * allows your team to easily build robust real-time web applications. 21 | */ 22 | 23 | // import Echo from 'laravel-echo'; 24 | 25 | // window.Pusher = require('pusher-js'); 26 | 27 | // window.Echo = new Echo({ 28 | // broadcaster: 'pusher', 29 | // key: process.env.MIX_PUSHER_APP_KEY, 30 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 31 | // forceTLS: true 32 | // }); 33 | -------------------------------------------------------------------------------- /auth/src/resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /auth/src/resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f8fafc; 3 | 4 | // Typography 5 | $font-family-sans-serif: 'Nunito', sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | -------------------------------------------------------------------------------- /auth/src/resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | @import url('https://fonts.bunny.net/css?family=Nunito'); 3 | 4 | // Variables 5 | @import 'variables'; 6 | 7 | // Bootstrap 8 | @import 'bootstrap/scss/bootstrap'; 9 | -------------------------------------------------------------------------------- /auth/src/resources/views/admin/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.admin') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 |

Wecome

10 |

You have access to Areas

11 |
12 |
13 | 14 |
15 |
16 | 23 |
24 |
25 |
26 |
27 |
28 | @endsection 29 | -------------------------------------------------------------------------------- /auth/src/resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Verify Your Email Address') }}
9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, 19 |
20 | @csrf 21 | . 22 |
23 |
24 |
25 |
26 |
27 |
28 | @endsection 29 | -------------------------------------------------------------------------------- /auth/src/resources/views/errors/401.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Unauthorized')) 4 | @section('code', '401') 5 | @section('message', __('Unauthorized')) 6 | -------------------------------------------------------------------------------- /auth/src/resources/views/errors/403.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Forbidden')) 4 | @section('code', '403') 5 | @section('message', __($exception->getMessage() ?: 'Forbidden')) 6 | -------------------------------------------------------------------------------- /auth/src/resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Not Found')) 4 | @section('code', '404') 5 | @section('message', __('Not Found')) 6 | -------------------------------------------------------------------------------- /auth/src/resources/views/errors/419.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Page Expired')) 4 | @section('code', '419') 5 | @section('message', __('Page Expired')) 6 | -------------------------------------------------------------------------------- /auth/src/resources/views/errors/429.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Too Many Requests')) 4 | @section('code', '429') 5 | @section('message', __('Too Many Requests')) 6 | -------------------------------------------------------------------------------- /auth/src/resources/views/errors/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Server Error')) 4 | @section('code', '500') 5 | @section('message', __('Server Error')) 6 | -------------------------------------------------------------------------------- /auth/src/resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Service Unavailable')) 4 | @section('code', '503') 5 | @section('message', __('Service Unavailable')) 6 | -------------------------------------------------------------------------------- /auth/src/resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {{ config('app.name', 'Laravel') }} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 |
23 |
24 |
25 | 26 |
27 |
28 | @yield('content') 29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /auth/src/resources/views/recovered_password.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 | 7 |
8 |
9 |

Senha Alterada com Sucesso !!

10 |
11 |
12 | 13 |
14 | 17 |
18 |
19 |
20 | @endsection 21 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/button.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/footer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/header.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @if (trim($slot) === 'Laravel') 5 | 6 | @else 7 | {{ $slot }} 8 | @endif 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 25 | 26 | 27 | 28 | 29 | 30 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => config('app.url')]) 5 | {{ config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @isset($subcopy) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endisset 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.') 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/panel.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/html/table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {{ Illuminate\Mail\Markdown::parse($slot) }} 3 |
4 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/button.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }}: {{ $url }} 2 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/footer.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/header.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/layout.blade.php: -------------------------------------------------------------------------------- 1 | {!! strip_tags($header) !!} 2 | 3 | {!! strip_tags($slot) !!} 4 | @isset($subcopy) 5 | 6 | {!! strip_tags($subcopy) !!} 7 | @endisset 8 | 9 | {!! strip_tags($footer) !!} 10 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => config('app.url')]) 5 | {{ config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @isset($subcopy) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endisset 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.') 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/panel.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/mail/text/table.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/notifications/email.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::message') 2 | {{-- Greeting --}} 3 | @if (! empty($greeting)) 4 | # {{ $greeting }} 5 | @else 6 | @if ($level === 'error') 7 | # @lang('Whoops!') 8 | @else 9 | # @lang('Hello!') 10 | @endif 11 | @endif 12 | 13 | {{-- Intro Lines --}} 14 | @foreach ($introLines as $line) 15 | {{ $line }} 16 | 17 | @endforeach 18 | 19 | {{-- Action Button --}} 20 | @isset($actionText) 21 | 31 | @component('mail::button', ['url' => $actionUrl, 'color' => $color]) 32 | {{ $actionText }} 33 | @endcomponent 34 | @endisset 35 | 36 | {{-- Outro Lines --}} 37 | @foreach ($outroLines as $line) 38 | {{ $line }} 39 | 40 | @endforeach 41 | 42 | {{-- Salutation --}} 43 | @if (! empty($salutation)) 44 | {{ $salutation }} 45 | @else 46 | @lang('Regards'),
47 | {{ config('app.name') }} 48 | @endif 49 | 50 | {{-- Subcopy --}} 51 | @isset($actionText) 52 | @slot('subcopy') 53 | @lang( 54 | "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\n". 55 | 'into your web browser:', 56 | [ 57 | 'actionText' => $actionText, 58 | ] 59 | ) [{{ $displayableActionUrl }}]({{ $actionUrl }}) 60 | @endslot 61 | @endisset 62 | @endcomponent 63 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/pagination/simple-bootstrap-4.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 27 | @endif 28 | -------------------------------------------------------------------------------- /auth/src/resources/views/vendor/pagination/simple-default.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 19 | @endif 20 | -------------------------------------------------------------------------------- /auth/src/routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /auth/src/routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /auth/src/tailwind.config.js: -------------------------------------------------------------------------------- 1 | import defaultTheme from 'tailwindcss/defaultTheme'; 2 | import forms from '@tailwindcss/forms'; 3 | 4 | /** @type {import('tailwindcss').Config} */ 5 | export default { 6 | content: [ 7 | './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', 8 | './storage/framework/views/*.php', 9 | './resources/views/**/*.blade.php', 10 | ], 11 | 12 | theme: { 13 | extend: { 14 | fontFamily: { 15 | sans: ['Figtree', ...defaultTheme.fontFamily.sans], 16 | }, 17 | }, 18 | }, 19 | 20 | plugins: [forms], 21 | }; 22 | -------------------------------------------------------------------------------- /auth/src/tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 18 | 19 | return $app; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /auth/src/tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 14 | 15 | $response->assertOk(); 16 | } 17 | }*/ 18 | 19 | use function Pest\Laravel\getJson; 20 | 21 | it('asset to be true', function () { 22 | expect(true)->toBe(true); 23 | }); 24 | 25 | it('should return status 200', fn () => getJson('/', ['Content-Type' => 'application/json'])->assertOk()); 26 | -------------------------------------------------------------------------------- /auth/src/tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /auth/src/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import laravel from 'laravel-vite-plugin'; 3 | 4 | export default defineConfig({ 5 | plugins: [ 6 | laravel({ 7 | input: [ 8 | 'resources/css/app.css', 9 | 'resources/js/app.js', 10 | ], 11 | refresh: true, 12 | }), 13 | ], 14 | }); 15 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | /.github export-ignore 10 | CHANGELOG.md export-ignore 11 | .styleci.yml export-ignore 12 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/.gitignore: -------------------------------------------------------------------------------- 1 | /.phpunit.cache 2 | /node_modules 3 | /public/build 4 | /public/hot 5 | /public/storage 6 | /storage/*.key 7 | /vendor 8 | .env 9 | .env.backup 10 | .env.production 11 | .phpunit.result.cache 12 | Homestead.json 13 | Homestead.yaml 14 | auth.json 15 | npm-debug.log 16 | yarn-error.log 17 | /.fleet 18 | /.idea 19 | /.vscode 20 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Classes/SSO/ProcessGetLogin.php: -------------------------------------------------------------------------------- 1 | handle(); 15 | } catch (ClientException $e) { 16 | return response()->json(['message' => 'Houve um erro , contate o suporte'], 400); 17 | } 18 | } 19 | 20 | private function handle(){ 21 | return $this->getLink(); 22 | } 23 | 24 | /* CREATE IMAGE */ 25 | public function getLink() 26 | { 27 | $state = Str::random(40); 28 | $query = http_build_query([ 29 | 'client_id' => config('services.auth.client_id'), 30 | 'redirect_url' => config('app.url_front').'/callback', 31 | 'response_type' => 'code', 32 | 'scope' => config('auth.sso_scope'), 33 | 'state' => $state, 34 | ]); 35 | 36 | return response()->json(['authorize_url' => config('services.auth.http_host').'/oauth/authorize?'.$query, 'state' => $state], 200); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Classes/Utilities/DBGender.php: -------------------------------------------------------------------------------- 1 | 'male', 'title' => 'masculino', 'url_title' => 'masculino'], 10 | /* 2 */ ['id' => 'female', 'title' => 'feminino', 'url_title' => 'feminino'], 11 | 12 | ]; 13 | 14 | public static function getAll() 15 | { 16 | return static::$start_db_data; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Classes/Utilities/DBProviderCategory.php: -------------------------------------------------------------------------------- 1 | 1, 'title' => 'Pessoa Física', 'url_title' => 'pessoa-fisica'], 12 | /* 2 */ ['id' => 2, 'title' => 'Pessoa Jurídica', 'url_title' => 'pessoa-jurídica'], 13 | ]; 14 | 15 | /** 16 | * @return \string[][] 17 | */ 18 | public static function getAll() 19 | { 20 | return static::$start_db_data; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Classes/Utilities/DBProviderClassification.php: -------------------------------------------------------------------------------- 1 | 'customer', 'title' => 'cliente', 'url_title' => 'cliente'], 12 | /* 2 */ ['id' => 'provider', 'title' => 'fornecedor', 'url_title' => 'fornecedor'], 13 | /* 2 */ ['id' => 'both', 'title' => 'ambos', 'url_title' => 'ambos'], 14 | ]; 15 | 16 | /** 17 | * @return \string[][] 18 | */ 19 | public static function getAll() 20 | { 21 | return static::$start_db_data; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Classes/Utilities/DBProviderStatus.php: -------------------------------------------------------------------------------- 1 | 'active', 'title' => 'Ativo', 'url_title' => 'ativo'], 12 | /* 2 */ ['id' => 'no_active', 'title' => 'Bloqueado', 'url_title' => 'bloqueado'], 13 | ]; 14 | 15 | /** 16 | * @return \string[][] 17 | */ 18 | public static function getAll() 19 | { 20 | return static::$start_db_data; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Classes/Utilities/DBStatus.php: -------------------------------------------------------------------------------- 1 | 'active', 'title' => 'ativo', 'url_title' => 'ativo'], 12 | /* 2 */ ['id' => 'no_active', 'title' => 'não ativo', 'url_title' => 'nao-ativo'], 13 | ]; 14 | 15 | /** 16 | * @return \string[][] 17 | */ 18 | public static function getAll() 19 | { 20 | return static::$start_db_data; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Classes/Utilities/ResetMigrationTables.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 16 | } 17 | 18 | /** 19 | * Register the commands for the application. 20 | */ 21 | protected function commands(): void 22 | { 23 | $this->load(__DIR__.'/Commands'); 24 | 25 | require base_path('routes/console.php'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | protected $dontFlash = [ 16 | 'current_password', 17 | 'password', 18 | 'password_confirmation', 19 | ]; 20 | 21 | /** 22 | * Register the exception handling callbacks for the application. 23 | */ 24 | public function register(): void 25 | { 26 | $this->reportable(function (Throwable $e) { 27 | // 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Controllers/Admin/UsersController.php: -------------------------------------------------------------------------------- 1 | with('AdminInfo')->get(); 21 | return response()->json(['data' => $users]); 22 | } 23 | 24 | public function listInfo(Request $request) 25 | { 26 | try { 27 | $user_admin = UserAdmin::find($this->user->id); 28 | 29 | return response()->json([ 30 | 'email' => $user_admin->email, 31 | 'name' => isset($user_admin->AdminInfo->name) ? $user_admin->AdminInfo->name : null, 32 | 'last_name' => isset($user_admin->AdminInfo->last_name) ? $user_admin->AdminInfo->last_name : null, 33 | 'is_manager' => $user_admin->AdminInfo->manager_status === 'is_manager' ? true : false, 34 | ]); 35 | } catch (ClientException $e) { 36 | return response()->json(['message' => 'It didnt load the user'], 400); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | check()) { 23 | $this->user = auth('api')->user(); 24 | } 25 | /*$this->middleware(function ($request, $next) { 26 | $this->user = auth('api')->user(); 27 | 28 | return $next($request); 29 | });*/ 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Controllers/SiteController.php: -------------------------------------------------------------------------------- 1 | json(['data' => 'test ok'], 200); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Controllers/Traits/ProviderTable.php: -------------------------------------------------------------------------------- 1 | belongsTo(Provider::class, 'provider_id'); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Controllers/Traits/UserAdminTable.php: -------------------------------------------------------------------------------- 1 | user_id == $user->id; 15 | } 16 | 17 | /** 18 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo 19 | */ 20 | public function User() 21 | { 22 | return $this->belongsTo(UserAdmin::class, 'user_id'); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson() ? null : route('login'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 24 | return redirect(RouteServiceProvider::HOME); 25 | } 26 | } 27 | 28 | return $next($request); 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts(): array 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/ValidateSignature.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 'fbclid', 16 | // 'utm_campaign', 17 | // 'utm_content', 18 | // 'utm_medium', 19 | // 'utm_source', 20 | // 'utm_term', 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Http/Requests/GetSSOCallBackRequest.php: -------------------------------------------------------------------------------- 1 | |string> 21 | */ 22 | public function rules(): array 23 | { 24 | return [ 25 | 'state' => 'required', 26 | 'code' => 'required' 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Models/UserAdminInfo.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | protected $policies = [ 18 | // 19 | ]; 20 | 21 | /** 22 | * Register any authentication / authorization services. 23 | */ 24 | public function boot(): void 25 | { 26 | $this->registerPolicies(); 27 | Passport::tokensExpireIn(now()->addDay(1)); 28 | Passport::refreshTokensExpireIn(now()->addDay(30)); 29 | Passport::personalAccessTokensExpireIn(now()->addMonth(6)); 30 | Passport::usePersonalAccessClientModel(PersonalAccessClient::class); 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | */ 26 | public function boot(): void 27 | { 28 | // 29 | } 30 | 31 | /** 32 | * Determine if events and listeners should be automatically discovered. 33 | */ 34 | public function shouldDiscoverEvents(): bool 35 | { 36 | return false; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | by($request->user()?->id ?: $request->ip()); 29 | }); 30 | 31 | $this->routes(function () { 32 | Route::middleware('api') 33 | ->prefix('api') 34 | ->group(base_path('routes/api.php')); 35 | 36 | Route::middleware('web') 37 | ->group(base_path('routes/web.php')); 38 | }); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | 'scheme' => 'https', 22 | ], 23 | 24 | 'postmark' => [ 25 | 'token' => env('POSTMARK_TOKEN'), 26 | ], 27 | 28 | 'ses' => [ 29 | 'key' => env('AWS_ACCESS_KEY_ID'), 30 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 31 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 32 | ], 33 | 34 | 'micro_services_available' => [ 35 | 'auth' 36 | ], 37 | 38 | 'auth' => [ 39 | 'http_host' => env('AUTH_HTTP_HOST'), 40 | 'request_host' => env('AUTH_REQUEST_HOST'), 41 | 'client_id' => env('AUTH_CLIENT_ID'), 42 | 'client_secret' => env('AUTH_CLIENT_SECRET'), 43 | 'scope' => env('AUTH_SCOPE'), 44 | 'callback' => env('SSO_CALLBACK') 45 | ], 46 | 47 | ]; 48 | 49 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | class UserFactory extends Factory 13 | { 14 | /** 15 | * The current password being used by the factory. 16 | */ 17 | protected static ?string $password; 18 | 19 | /** 20 | * Define the model's default state. 21 | * 22 | * @return array 23 | */ 24 | public function definition(): array 25 | { 26 | return [ 27 | 'name' => fake()->name(), 28 | 'email' => fake()->unique()->safeEmail(), 29 | 'email_verified_at' => now(), 30 | 'password' => static::$password ??= Hash::make('password'), 31 | 'remember_token' => Str::random(10), 32 | ]; 33 | } 34 | 35 | /** 36 | * Indicate that the model's email address should be unverified. 37 | */ 38 | public function unverified(): static 39 | { 40 | return $this->state(fn (array $attributes) => [ 41 | 'email_verified_at' => null, 42 | ]); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/migrations/2014_09_11_000005_create_user_admins.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 18 | 19 | $table->bigIncrements('id'); 20 | $table->string('email')->unique(); 21 | $table->rememberToken(); 22 | 23 | $table->enum('status', ['active', 'no_active'])->default('active'); 24 | $table->string('folder', '60')->nullable(); 25 | $table->string('auth_token', '400')->nullable(); 26 | 27 | $table->timestamps(); 28 | 29 | $table->softDeletes(); 30 | }); 31 | } 32 | 33 | /** 34 | * Reverse the migrations. 35 | * 36 | * @return void 37 | */ 38 | public function down() 39 | { 40 | Schema::dropIfExists('user_admins'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/migrations/2014_10_12_000002_create_user_admin_infos.php: -------------------------------------------------------------------------------- 1 | engine = 'InnoDB'; 18 | 19 | $table->bigIncrements('id'); 20 | 21 | $table->bigInteger('user_id')->unsigned(); 22 | $table->foreign('user_id')->references('id')->on('user_admins')->onDelete('cascade'); 23 | 24 | $table->string('cpf')->unique(); 25 | $table->string('code')->nullable(); 26 | 27 | $table->string('name'); 28 | $table->string('last_name')->nullable(); 29 | $table->string('phone')->nullable(); 30 | $table->enum('manager_status', ['not_manager', 'is_manager'])->default('not_manager'); 31 | 32 | $table->timestamps(); 33 | }); 34 | } 35 | 36 | /** 37 | * Reverse the migrations. 38 | * 39 | * @return void 40 | */ 41 | public function down() 42 | { 43 | Schema::table('user_admin_infos', function (Blueprint $table) { 44 | $table->dropForeign('user_admin_infos_user_id_foreign'); 45 | }); 46 | 47 | Schema::dropIfExists('user_admin_infos'); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php: -------------------------------------------------------------------------------- 1 | string('id', 100)->primary(); 16 | $table->unsignedBigInteger('user_id')->index(); 17 | $table->uuid('client_id'); 18 | $table->text('scopes')->nullable(); 19 | $table->boolean('revoked'); 20 | $table->dateTime('expires_at')->nullable(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | */ 27 | public function down(): void 28 | { 29 | Schema::dropIfExists('oauth_auth_codes'); 30 | } 31 | }; 32 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | string('id', 100)->primary(); 16 | $table->unsignedBigInteger('user_id')->nullable()->index(); 17 | $table->uuid('client_id'); 18 | $table->string('name')->nullable(); 19 | $table->text('scopes')->nullable(); 20 | $table->boolean('revoked'); 21 | $table->timestamps(); 22 | $table->dateTime('expires_at')->nullable(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('oauth_access_tokens'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php: -------------------------------------------------------------------------------- 1 | string('id', 100)->primary(); 16 | $table->string('access_token_id', 100)->index(); 17 | $table->boolean('revoked'); 18 | $table->dateTime('expires_at')->nullable(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | */ 25 | public function down(): void 26 | { 27 | Schema::dropIfExists('oauth_refresh_tokens'); 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/migrations/2016_06_01_000004_create_oauth_clients_table.php: -------------------------------------------------------------------------------- 1 | uuid('id')->primary(); 16 | $table->unsignedBigInteger('user_id')->nullable()->index(); 17 | $table->string('name'); 18 | $table->string('secret', 100)->nullable(); 19 | $table->string('provider')->nullable(); 20 | $table->text('redirect'); 21 | $table->boolean('personal_access_client'); 22 | $table->boolean('password_client'); 23 | $table->boolean('revoked'); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | */ 31 | public function down(): void 32 | { 33 | Schema::dropIfExists('oauth_clients'); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 16 | $table->uuid('client_id'); 17 | $table->timestamps(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::dropIfExists('oauth_personal_access_clients'); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 16 | 17 | // \App\Models\User::factory()->create([ 18 | // 'name' => 'Test User', 19 | // 'email' => 'test@example.com', 20 | // ]); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "type": "module", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build" 7 | }, 8 | "devDependencies": { 9 | "axios": "^1.6.1", 10 | "laravel-vite-plugin": "^1.0.0", 11 | "vite": "^5.0.0" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | tests/Unit 10 | 11 | 12 | tests/Feature 13 | 14 | 15 | 16 | 17 | app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/public/assets/txt/test_array.txt: -------------------------------------------------------------------------------- 1 | Array 2 | ( 3 | [error] => invalid_request 4 | [error_description] => The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. 5 | [hint] => Authorization code has been revoked 6 | [message] => The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. 7 | ) 8 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/public/assets/txt/test_file.txt: -------------------------------------------------------------------------------- 1 | eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiI5YmNhYTg5My0wNzYwLTQyN2YtOWVhMS03M2QwODMwOWVjNjEiLCJqdGkiOiIxYzZmZTAwNjdkZTNhYzY4MWNiYzUyYTBmZmI2NDk3MDBiZmJjNTU0MmZmMDVjZDA4ZTU4YTQwN2RmMjI4NmMzMGRhNjYxOWU4M2JhNzMwMyIsImlhdCI6MTcxMzA1OTkyOC41Mzg5OTcsIm5iZiI6MTcxMzA1OTkyOC41Mzg5OTgsImV4cCI6MTcxMzE0NjMyOC41MjE5MDYsInN1YiI6IjEiLCJzY29wZXMiOlsidmlldy11c2VyIl19.epfFIZ2y39bskgS5jCxQsmZmHMhOO_EEKXWACRjMUh81qkdDqFF_movYF8_TC0mVNbMd0o9F7NdxgBoeJf4apSoqQ3-qd75oCr3b0zBYF1f_dwYjZwsuSIIucwfBvPK2chxxCg1ucsehzxmjguNIlKZpDvNg9TZ07AFYBWKUE_eFQw0o7pbGSFntWi_DSn7yhJBOGirmx6V_G9HafU5d_JLaISQyBDf6wUo9cl4B0mOUVMrRiuCtii7waQjUn00JiTsJRV-hGTgxU-BXDs-GcFIcGILm6G0jHJPnNpa-gPw1dlk2r7uIljyujXyv4ZmSOYzLOWmpThWIpHW9aXmbUpoRNkMazqeoNXN7YWwyM9mgRbToEcpTcAs10Atxve-I_YT430uxn9KGPr-ovkbRmMsuVjQvUoq22n-CDDYC3qaZQ6X7UDQcvjiO5lRFayEhhF-Ma-5eANgQZvEoE41ey0jTH0fCKlHnunak4tnsQMKL8hRfCuUasfQFDrS-ksSeldKNzaeIDPvEtcFfwYtEfmIIMjW1OIjUPo_MQG-bZr0f9Rl1Ee-izwSmFMGE1n9hI4h8NOOO744CVZmH-lXaDkJ3-3kJWD8s4DQo5ngh0nm6oUFzTi3OqXWta4JDIaY8lL0BNuCtLMICIIYG1_zutLVZVlSUTKxMxvT39oeCTtY -------------------------------------------------------------------------------- /supervisor_admin_website/src/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/supervisor_admin_website/src/public/favicon.ico -------------------------------------------------------------------------------- /supervisor_admin_website/src/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murilolivorato/laravel_sso/7e13cda279700c146e28697061c086f2f458a90e/supervisor_admin_website/src/resources/css/app.css -------------------------------------------------------------------------------- /supervisor_admin_website/src/resources/js/app.js: -------------------------------------------------------------------------------- 1 | import './bootstrap'; 2 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /** 2 | * We'll load the axios HTTP library which allows us to easily issue requests 3 | * to our Laravel back-end. This library automatically handles sending the 4 | * CSRF token as a header based on the value of the "XSRF" token cookie. 5 | */ 6 | 7 | import axios from 'axios'; 8 | window.axios = axios; 9 | 10 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 11 | 12 | /** 13 | * Echo exposes an expressive API for subscribing to channels and listening 14 | * for events that are broadcast by Laravel. Echo and event broadcasting 15 | * allows your team to easily build robust real-time web applications. 16 | */ 17 | 18 | // import Echo from 'laravel-echo'; 19 | 20 | // import Pusher from 'pusher-js'; 21 | // window.Pusher = Pusher; 22 | 23 | // window.Echo = new Echo({ 24 | // broadcaster: 'pusher', 25 | // key: import.meta.env.VITE_PUSHER_APP_KEY, 26 | // cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', 27 | // wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, 28 | // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, 29 | // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, 30 | // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', 31 | // enabledTransports: ['ws', 'wss'], 32 | // }); 33 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/routes/api.php: -------------------------------------------------------------------------------- 1 | ['auth:api']], function () { 31 | Route::post('admin/auth/logout', [AuthController::class, 'logout']); 32 | Route::get('admin/users', [UsersController::class, 'list']); 33 | Route::get('admin/user-info', [UsersController::class, 'listInfo']); 34 | }); 35 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/routes/web.php: -------------------------------------------------------------------------------- 1 | name('login'); 19 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 18 | 19 | return $app; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/tests/Feature/Auth/LoginTest.php: -------------------------------------------------------------------------------- 1 | 2 | get(config('services.auth.request_host') .'/api/get-api'); 13 | dd($response); 14 | /* $mock = m::mock(AuthService::class)->makePartial(); 15 | $helloWorld = $mock->testConnection(); // should get your desired result 16 | dd($helloWorld);*/ 17 | }); 18 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 16 | 17 | $response->assertOk(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /supervisor_admin_website/src/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import laravel from 'laravel-vite-plugin'; 3 | 4 | export default defineConfig({ 5 | plugins: [ 6 | laravel({ 7 | input: ['resources/css/app.css', 'resources/js/app.js'], 8 | refresh: true, 9 | }), 10 | ], 11 | }); 12 | --------------------------------------------------------------------------------