Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Base lexicale BaLex
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lex gaMe
Base lexicale BaLex
Commits
6846697a
Commit
6846697a
authored
2 years ago
by
Pierre Fleutot
Browse files
Options
Downloads
Patches
Plain Diff
Fix chemin vers clé publique dans méthode get jwks (obtention certificat json)
parent
7eca6e21
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/packages/league_oauth2_server.yaml
+2
-2
2 additions, 2 deletions
config/packages/league_oauth2_server.yaml
src/Controller/IndexController.php
+1
-1
1 addition, 1 deletion
src/Controller/IndexController.php
with
3 additions
and
3 deletions
config/packages/league_oauth2_server.yaml
+
2
−
2
View file @
6846697a
...
@@ -3,7 +3,7 @@ league_oauth2_server:
...
@@ -3,7 +3,7 @@ league_oauth2_server:
# Full path to the private key file.
# Full path to the private key file.
# How to generate a private key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys
# How to generate a private key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys
private_key
:
'
%env(resolve:OAUTH_PRIVATE_KEY)%'
private_key
:
'
%
kernel.project_dir%%
env(resolve:OAUTH_PRIVATE_KEY)%'
# Passphrase of the private key, if any
# Passphrase of the private key, if any
private_key_passphrase
:
'
%env(OAUTH_PASSPHRASE)%'
private_key_passphrase
:
'
%env(OAUTH_PASSPHRASE)%'
...
@@ -49,7 +49,7 @@ league_oauth2_server:
...
@@ -49,7 +49,7 @@ league_oauth2_server:
# Full path to the public key file
# Full path to the public key file
# How to generate a public key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys
# How to generate a public key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys
public_key
:
'
%env(resolve:OAUTH_PUBLIC_KEY)%'
public_key
:
'
%
kernel.project_dir%%
env(resolve:OAUTH_PUBLIC_KEY)%'
scopes
:
scopes
:
# Scopes that you wish to utilize in your application.
# Scopes that you wish to utilize in your application.
...
...
This diff is collapsed.
Click to expand it.
src/Controller/IndexController.php
+
1
−
1
View file @
6846697a
...
@@ -44,7 +44,7 @@ class IndexController extends AbstractController
...
@@ -44,7 +44,7 @@ class IndexController extends AbstractController
{
{
// Load the public key from the filesystem and use OpenSSL to parse it.
// Load the public key from the filesystem and use OpenSSL to parse it.
$kernelDirectory
=
$this
->
getParameter
(
'kernel.project_dir'
);
$kernelDirectory
=
$this
->
getParameter
(
'kernel.project_dir'
);
$publicKey
=
openssl_pkey_get_public
(
file_get_contents
(
$kernelDirectory
.
'/var/keys/public.key'
));
$publicKey
=
openssl_pkey_get_public
(
file_get_contents
(
$kernelDirectory
.
$_ENV
[
'OAUTH_PUBLIC_KEY'
]
));
$details
=
openssl_pkey_get_details
(
$publicKey
);
$details
=
openssl_pkey_get_details
(
$publicKey
);
$jwks
=
[
$jwks
=
[
'keys'
=>
[
'keys'
=>
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment