Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
media_fotoweb
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
media_fotoweb
Commits
5a791b01
Commit
5a791b01
authored
3 years ago
by
Stephan Zeidler
Committed by
Stephan Zeidler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3292489
by szeidler: Revoke authentication button should only be shown for OAuth 2.0
parent
904fbb07
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FotowebWidgetTrait.php
+10
-4
10 additions, 4 deletions
src/FotowebWidgetTrait.php
with
10 additions
and
4 deletions
src/FotowebWidgetTrait.php
+
10
−
4
View file @
5a791b01
...
...
@@ -69,7 +69,7 @@ trait FotowebWidgetTrait {
}
// Create the widget using an <iframe>.
return
[
$build
=
[
'widget'
=>
[
'#type'
=>
'html_tag'
,
'#tag'
=>
'iframe'
,
...
...
@@ -79,7 +79,11 @@ trait FotowebWidgetTrait {
'height'
=>
$widget_height
,
],
],
'revoke_authenticate_button'
=>
[
];
// Revoking is only necessary for OAuth 2.0 based integrations.
if
(
$config
->
get
(
'auth_type'
)
===
'oauth2'
)
{
$build
[
'revoke_authenticate_button'
]
=
[
'#type'
=>
'link'
,
'#title'
=>
$this
->
t
(
'Revoke authentication with Fotoware'
),
'#attributes'
=>
[
...
...
@@ -91,8 +95,10 @@ trait FotowebWidgetTrait {
'target'
=>
'_blank'
,
],
'#url'
=>
Url
::
fromRoute
(
'media_fotoweb.oauth2_revoke'
),
],
];
];
}
return
$build
;
}
/**
...
...
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