Skip to content

Commit 0c122bb

Browse files
committed
Initial revision
0 parents  commit 0c122bb

File tree

345 files changed

+351353
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+351353
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.env.example

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
APP_NAME=MetaMan
2+
APP_ENV=production
3+
APP_KEY=
4+
APP_DEBUG=false
5+
APP_URL=https://metaman.example.org
6+
7+
LOG_CHANNEL=stack
8+
LOG_LEVEL=debug
9+
10+
DB_CONNECTION=mysql
11+
# DB_HOST=127.0.0.1
12+
DB_HOST=localhost
13+
DB_PORT=3306
14+
DB_DATABASE=metaman
15+
DB_USERNAME=metaman
16+
DB_PASSWORD=
17+
18+
BROADCAST_DRIVER=log
19+
CACHE_DRIVER=file
20+
QUEUE_CONNECTION=database
21+
SESSION_DRIVER=file
22+
SESSION_LIFETIME=120
23+
24+
# MEMCACHED_HOST=127.0.0.1
25+
MEMCACHED_HOST=memcached
26+
27+
# REDIS_HOST=127.0.0.1
28+
REDIS_HOST=redis
29+
REDIS_PASSWORD=null
30+
REDIS_PORT=6379
31+
32+
MAIL_MAILER=smtp
33+
MAIL_HOST=mailhog
34+
MAIL_PORT=1025
35+
MAIL_USERNAME=null
36+
MAIL_PASSWORD=null
37+
MAIL_ENCRYPTION=null
38+
MAIL_FROM_ADDRESS=null
39+
MAIL_FROM_NAME="${APP_NAME}"
40+
MAIL_REPLYTO_ADDRESS=[email protected]
41+
MAIL_REPLYTO_NAME=MetaMan
42+
MAIL_ADMIN_ADDRESS=[email protected]
43+
44+
AWS_ACCESS_KEY_ID=
45+
AWS_SECRET_ACCESS_KEY=
46+
AWS_DEFAULT_REGION=us-east-1
47+
AWS_BUCKET=
48+
49+
PUSHER_APP_ID=
50+
PUSHER_APP_KEY=
51+
PUSHER_APP_SECRET=
52+
PUSHER_APP_CLUSTER=mt1
53+
54+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
55+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
56+
57+
GIT_BINARY=/usr/bin/git
58+
GIT_SSH_KEY=/home/user/.ssh/id_ed25519
59+
GIT_REMOTE=[email protected]:repository
60+
GIT_REMOTE_BRANCH=main
61+
GIT_LOCAL=/home/user/metaman/storage/git
62+
GIT_USER_NAME="${APP_NAME}"
63+
GIT_USER_EMAIL=[email protected]
64+
GIT_EDUGAIN_CFG=eduid2edugain.cfg
65+
GIT_EDUGAIN_TAG=eduid2edugain.tag
66+
GIT_HFD_TAG=hide-from-discovery.tag
67+
68+
METADATA_BASE_URL=https://metadata.example.org/
69+
70+
LOG_SLACK_WEBHOOK_URL=https://hooks.example.org/services/token
71+
LOG_SLACK_CHANNEL=#metaman

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore

.github/workflows/laravel.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Laravel
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ main ]
7+
8+
jobs:
9+
laravel-tests:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
15+
with:
16+
php-version: '7.4'
17+
- uses: actions/checkout@v2
18+
- name: Copy .env
19+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
20+
- name: Install Dependencies
21+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
22+
- name: Generate key
23+
run: php artisan key:generate
24+
- name: Directory Permissions
25+
run: chmod -R 777 storage bootstrap/cache
26+
- name: Create Database
27+
run: |
28+
mkdir -p database
29+
touch database/database.sqlite
30+
- name: Execute tests (Unit and Feature tests) via PHPUnit
31+
env:
32+
DB_CONNECTION: sqlite
33+
DB_DATABASE: database/database.sqlite
34+
run: vendor/bin/phpunit

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/storage/*.key
5+
/storage/debugbar
6+
/storage/git
7+
/tests/report
8+
/vendor
9+
.env
10+
.env.backup
11+
.env.dusk.local
12+
.phpunit.result.cache
13+
Homestead.json
14+
Homestead.yaml
15+
npm-debug.log
16+
yarn-error.log

.styleci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
php:
2+
preset: laravel
3+
disabled:
4+
- no_unused_imports
5+
finder:
6+
not-name:
7+
- index.php
8+
- server.php
9+
js:
10+
finder:
11+
not-name:
12+
- webpack.mix.js
13+
css: true

LICENSE

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2020, Jan Oppolzer
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# MetaMan-Laravel
2+
3+
MetaMan (short for Metadata Manager) is [Laravel](https://laravel.com)-based web application intended for managing SAML metadata.
4+
5+
## Installation
6+
7+
The easiest way to install MetaMan is to use [Envoy](https://laravel.com/docs/8.x/envoy) script in [metaman-envoy](https://github.com/JanOppolzer/metaman-envoy) repository.

app/Console/Kernel.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace App\Console;
4+
5+
use Illuminate\Console\Scheduling\Schedule;
6+
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7+
8+
class Kernel extends ConsoleKernel
9+
{
10+
/**
11+
* The Artisan commands provided by your application.
12+
*
13+
* @var array
14+
*/
15+
protected $commands = [
16+
//
17+
];
18+
19+
/**
20+
* Define the application's command schedule.
21+
*
22+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
23+
* @return void
24+
*/
25+
protected function schedule(Schedule $schedule)
26+
{
27+
// $schedule->command('inspire')->hourly();
28+
}
29+
30+
/**
31+
* Register the commands for the application.
32+
*
33+
* @return void
34+
*/
35+
protected function commands()
36+
{
37+
$this->load(__DIR__.'/Commands');
38+
39+
require base_path('routes/console.php');
40+
}
41+
}

app/Exceptions/Handler.php

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
namespace App\Exceptions;
4+
5+
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6+
use Throwable;
7+
8+
class Handler extends ExceptionHandler
9+
{
10+
/**
11+
* A list of the exception types that are not reported.
12+
*
13+
* @var array
14+
*/
15+
protected $dontReport = [
16+
//
17+
];
18+
19+
/**
20+
* A list of the inputs that are never flashed for validation exceptions.
21+
*
22+
* @var array
23+
*/
24+
protected $dontFlash = [
25+
'password',
26+
'password_confirmation',
27+
];
28+
29+
/**
30+
* Register the exception handling callbacks for the application.
31+
*
32+
* @return void
33+
*/
34+
public function register()
35+
{
36+
$this->reportable(function (Throwable $e) {
37+
//
38+
});
39+
}
40+
}

0 commit comments

Comments
 (0)