Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
lib
unicaen
auth
Commits
d42aebe4
Commit
d42aebe4
authored
5 years ago
by
Laurent Lecluse
Browse files
Options
Downloads
Plain Diff
Merge branches 'develop' and 'master' of
https://git.unicaen.fr/lib/unicaen/auth
parents
7eaaa058
d881c569
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#5379
failed
5 years ago
Stage: publish
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Module.php
+0
-8
0 additions, 8 deletions
Module.php
src/UnicaenAuth/Service/AuthorizeService.php
+0
-44
0 additions, 44 deletions
src/UnicaenAuth/Service/AuthorizeService.php
with
0 additions
and
52 deletions
Module.php
+
0
−
8
View file @
d42aebe4
...
...
@@ -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'
);
...
...
This diff is collapsed.
Click to expand it.
src/UnicaenAuth/Service/AuthorizeService.php
+
0
−
44
View file @
d42aebe4
...
...
@@ -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
;
}
}
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