Skip to content

Commit 3d4bbce

Browse files
committed
It's alive
0 parents  commit 3d4bbce

10 files changed

+943
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/

composer.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "vizir/laravel-keycloak-web-guard",
3+
"description": "Simple Keycloak Guard to Laravel Web Routes",
4+
"authors": [
5+
{
6+
"name": "Mário Valney",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"minimum-stability": "dev",
11+
"require": {
12+
"guzzlehttp/guzzle": "^6.3@dev"
13+
},
14+
"autoload": {
15+
"psr-4": {
16+
"Vizir\\KeycloakWebGuard\\": "src/"
17+
}
18+
},
19+
"extra": {
20+
"laravel": {
21+
"providers": [
22+
"Vizir\\KeycloakWebGuard\\KeycloakWebGuardServiceProvider"
23+
]
24+
}
25+
}
26+
}

composer.lock

+298
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/keycloak-web.php

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
return [
4+
/**
5+
* Keycloak Url
6+
*
7+
* Generally https://your-server.com/auth
8+
*/
9+
'base_url' => env('KEYCLOAK_BASE_URL', ''),
10+
11+
/**
12+
* Keycloak Realm
13+
*
14+
* Default is master
15+
*/
16+
'realm' => env('KEYCLOAK_REALM', 'master'),
17+
18+
/**
19+
* The Keycloak Server realm public key (string).
20+
*
21+
* @see Keycloak >> Realm Settings >> Keys >> RS256 >> Public Key
22+
*/
23+
'realm_public_key' => env('KEYCLOAK_REALM_PUBLIC_KEY', null),
24+
25+
/**
26+
* Keycloak Client Secret
27+
*
28+
* @see Keycloak >> Clients >> Installation
29+
*/
30+
'client_id' => env('KEYCLOAK_CLIENT_ID', null),
31+
32+
/**
33+
* Keycloak Client Secret
34+
*
35+
* @see Keycloak >> Clients >> Installation
36+
*/
37+
'client_secret' => env('KEYCLOAK_CLIENT_SECRET', null),
38+
];

routes/keycloak-web.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php

0 commit comments

Comments
 (0)