Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
A
auth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lib
unicaen
auth
Commits
d881c569
Commit
d881c569
authored
Sep 30, 2019
by
Laurent Lécluse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migration de code vers BjyAuthorize
parent
e2e24dba
Pipeline
#5377
failed with stage
in 9 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
52 deletions
+0
-52
Module.php
Module.php
+0
-8
src/UnicaenAuth/Service/AuthorizeService.php
src/UnicaenAuth/Service/AuthorizeService.php
+0
-44
No files found.
Module.php
View file @
d881c569
...
...
@@ -69,14 +69,6 @@ class Module implements AutoloaderProviderInterface, ConfigProviderInterface, Se
/* @var $services \Zend\ServiceManager\ServiceManager */
$services
=
$application
->
getServiceManager
();
if
(
$services
->
has
(
'BjyAuthorize\Service\Authorize'
))
{
// transmission des ACL aux aides de vue de navigation
$authorizeService
=
$services
->
get
(
'BjyAuthorize\Service\Authorize'
);
/* @var $authorizeService \BjyAuthorize\Service\Authorize */
Navigation
::
setDefaultAcl
(
$authorizeService
->
getAcl
());
Navigation
::
setDefaultRole
(
$authorizeService
->
getIdentity
());
}
/* @var $options ModuleOptions */
$this
->
options
=
$services
->
get
(
'unicaen-auth_module_options'
);
...
...
src/UnicaenAuth/Service/AuthorizeService.php
View file @
d881c569
...
...
@@ -13,18 +13,8 @@ class AuthorizeService extends \BjyAuthorize\Service\Authorize
{
use
UserContextServiceAwareTrait
;
/**
* Loading...
*
* @var boolean
*/
protected
$loading
;
/**
* @deprecated this method will be removed in BjyAuthorize 1.4.x+,
* please retrieve the identity from the
* `BjyAuthorize\Provider\Identity\ProviderInterface` service
*
* @return string
*/
...
...
@@ -47,38 +37,4 @@ class AuthorizeService extends \BjyAuthorize\Service\Authorize
return
null
;
}
/**
* Retourne la liste des rôles fournis par l'ensemble des providers
*/
public
function
getRoles
()
{
$roles
=
[];
foreach
(
$this
->
roleProviders
as
$provider
)
{
$r
=
$provider
->
getRoles
();
foreach
(
$r
as
$role
)
{
$roles
[
$role
->
getRoleId
()]
=
$role
;
}
}
return
$roles
;
}
/**
* Initializes the service
*
* @internal
*
* @return void
*/
public
function
load
()
{
$this
->
loading
=
true
;
parent
::
load
();
$this
->
loading
=
false
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment