Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki-plugin-oauthgeneric
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
709
public
dokuwiki-plugin-oauthgeneric
Commits
51298b29
Commit
51298b29
authored
Mar 21, 2023
by
Pietro Saccardi
Browse files
Options
Downloads
Patches
Plain Diff
Toggle state parm depending on config parm
parent
d13c9ae1
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Generic.php
+2
-1
2 additions, 1 deletion
Generic.php
conf/default.php
+1
-0
1 addition, 0 deletions
conf/default.php
conf/metadata.php
+1
-0
1 addition, 0 deletions
conf/metadata.php
lang/cs/settings.php
+1
-1
1 addition, 1 deletion
lang/cs/settings.php
lang/en/settings.php
+1
-0
1 addition, 0 deletions
lang/en/settings.php
with
6 additions
and
2 deletions
Generic.php
+
2
−
1
View file @
51298b29
...
...
@@ -12,7 +12,8 @@ class Generic extends AbstractOAuth2Base
{
/** @inheritdoc */
public
function
needsStateParameterInAuthUrl
()
{
return
true
;
$plugin
=
plugin_load
(
'helper'
,
'oauthgeneric'
);
return
0
!==
$plugin
->
getConf
(
'needs-state'
);
}
/** @inheritdoc */
...
...
This diff is collapsed.
Click to expand it.
conf/default.php
+
1
−
0
View file @
51298b29
...
...
@@ -11,6 +11,7 @@ $conf['tokenurl'] = '';
$conf
[
'userurl'
]
=
''
;
$conf
[
'authmethod'
]
=
0
;
$conf
[
'scopes'
]
=
''
;
$conf
[
'needs-state'
]
=
0
;
$conf
[
'json-user'
]
=
''
;
$conf
[
'json-name'
]
=
''
;
...
...
This diff is collapsed.
Click to expand it.
conf/metadata.php
+
1
−
0
View file @
51298b29
...
...
@@ -11,6 +11,7 @@ $meta['tokenurl'] = array('string');
$meta
[
'userurl'
]
=
array
(
'string'
);
$meta
[
'authmethod'
]
=
array
(
'multichoice'
,
'_choices'
=>
[
0
,
1
,
6
,
2
,
3
,
4
,
5
]);
$meta
[
'scopes'
]
=
array
(
'array'
);
$meta
[
'needs-state'
]
=
array
(
'onoff'
);
$meta
[
'json-user'
]
=
array
(
'string'
);
$meta
[
'json-name'
]
=
array
(
'string'
);
...
...
This diff is collapsed.
Click to expand it.
lang/cs/settings.php
+
1
−
1
View file @
51298b29
...
...
@@ -11,8 +11,8 @@ $lang['authurl'] = 'URL pro autentizaci';
$lang
[
'tokenurl'
]
=
'URL pro získání tokenu'
;
$lang
[
'userurl'
]
=
'Relativní URL pro získání uživatelských informací z API (musí vracet JSON data autentizovaného uživatele)'
;
$lang
[
'authmethod'
]
=
'Autorizační metoda pro získání uživatelských informací z API'
;
$lang
[
'scopes'
]
=
'Scopes to request (comma separated)'
;
$lang
[
'scopes'
]
=
'Požadovaná oprávnění (scopes, oddělená čárkou)'
;
$lang
[
'needs-state'
]
=
'Whether the provider needs and supplies a state parameter in the callback URL.'
;
$lang
[
'json-user'
]
=
'Objektová cesta k uživatelskému jménu (tečková notace)'
;
$lang
[
'json-name'
]
=
'Objektová cesta k celému jménu uživatele (tečkovánotace)'
;
...
...
This diff is collapsed.
Click to expand it.
lang/en/settings.php
+
1
−
0
View file @
51298b29
...
...
@@ -12,6 +12,7 @@ $lang['tokenurl'] = 'URL to the token endpoint';
$lang
[
'userurl'
]
=
'URL to the user info API endpoint (must return JSON about the authenticated user)'
;
$lang
[
'authmethod'
]
=
'Authorization method used when talking to the user API'
;
$lang
[
'scopes'
]
=
'Scopes to request (comma separated)'
;
$lang
[
'needs-state'
]
=
'The provider needs and supplies a state parameter in the callback URL.'
;
$lang
[
'json-user'
]
=
'Access to the username in dot notation'
;
$lang
[
'json-name'
]
=
'Access to the full name in dot notation'
;
...
...
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