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
28a7ade1
Unverified
Commit
28a7ade1
authored
Apr 21, 2023
by
Andreas Gohr
Committed by
GitHub
Apr 21, 2023
Browse files
Options
Downloads
Plain Diff
Merge pull request #7 from mittelab/master
Handle the state parameter in callback URL.
parents
fde2b1b7
82cf301d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Generic.php
+5
-0
5 additions, 0 deletions
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
9 additions
and
1 deletion
Generic.php
+
5
−
0
View file @
28a7ade1
...
@@ -10,6 +10,11 @@ use OAuth\Common\Http\Uri\Uri;
...
@@ -10,6 +10,11 @@ use OAuth\Common\Http\Uri\Uri;
*/
*/
class
Generic
extends
AbstractOAuth2Base
class
Generic
extends
AbstractOAuth2Base
{
{
/** @inheritdoc */
public
function
needsStateParameterInAuthUrl
()
{
$plugin
=
plugin_load
(
'helper'
,
'oauthgeneric'
);
return
0
!==
$plugin
->
getConf
(
'needs-state'
);
}
/** @inheritdoc */
/** @inheritdoc */
public
function
getAuthorizationEndpoint
()
public
function
getAuthorizationEndpoint
()
...
...
This diff is collapsed.
Click to expand it.
conf/default.php
+
1
−
0
View file @
28a7ade1
...
@@ -11,6 +11,7 @@ $conf['tokenurl'] = '';
...
@@ -11,6 +11,7 @@ $conf['tokenurl'] = '';
$conf
[
'userurl'
]
=
''
;
$conf
[
'userurl'
]
=
''
;
$conf
[
'authmethod'
]
=
0
;
$conf
[
'authmethod'
]
=
0
;
$conf
[
'scopes'
]
=
''
;
$conf
[
'scopes'
]
=
''
;
$conf
[
'needs-state'
]
=
0
;
$conf
[
'json-user'
]
=
''
;
$conf
[
'json-user'
]
=
''
;
$conf
[
'json-name'
]
=
''
;
$conf
[
'json-name'
]
=
''
;
...
...
This diff is collapsed.
Click to expand it.
conf/metadata.php
+
1
−
0
View file @
28a7ade1
...
@@ -11,6 +11,7 @@ $meta['tokenurl'] = array('string');
...
@@ -11,6 +11,7 @@ $meta['tokenurl'] = array('string');
$meta
[
'userurl'
]
=
array
(
'string'
);
$meta
[
'userurl'
]
=
array
(
'string'
);
$meta
[
'authmethod'
]
=
array
(
'multichoice'
,
'_choices'
=>
[
0
,
1
,
6
,
2
,
3
,
4
,
5
]);
$meta
[
'authmethod'
]
=
array
(
'multichoice'
,
'_choices'
=>
[
0
,
1
,
6
,
2
,
3
,
4
,
5
]);
$meta
[
'scopes'
]
=
array
(
'array'
);
$meta
[
'scopes'
]
=
array
(
'array'
);
$meta
[
'needs-state'
]
=
array
(
'onoff'
);
$meta
[
'json-user'
]
=
array
(
'string'
);
$meta
[
'json-user'
]
=
array
(
'string'
);
$meta
[
'json-name'
]
=
array
(
'string'
);
$meta
[
'json-name'
]
=
array
(
'string'
);
...
...
This diff is collapsed.
Click to expand it.
lang/cs/settings.php
+
1
−
1
View file @
28a7ade1
...
@@ -11,8 +11,8 @@ $lang['authurl'] = 'URL pro autentizaci';
...
@@ -11,8 +11,8 @@ $lang['authurl'] = 'URL pro autentizaci';
$lang
[
'tokenurl'
]
=
'URL pro získání tokenu'
;
$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
[
'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
[
'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
[
'scopes'
]
=
'Požadovaná oprávnění (scopes, oddělená čárkou)'
;
$lang
[
'needs-state'
]
=
'Poskytovatel potřebuje a poskytuje parametr pro přesměrování na callback URL'
;
$lang
[
'json-user'
]
=
'Objektová cesta k uživatelskému jménu (tečková notace)'
;
$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)'
;
$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 @
28a7ade1
...
@@ -12,6 +12,7 @@ $lang['tokenurl'] = 'URL to the token endpoint';
...
@@ -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
[
'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
[
'authmethod'
]
=
'Authorization method used when talking to the user API'
;
$lang
[
'scopes'
]
=
'Scopes to request (comma separated)'
;
$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-user'
]
=
'Access to the username in dot notation'
;
$lang
[
'json-name'
]
=
'Access to the full name 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
sign in
to comment