Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
f280cc1c
Commit
f280cc1c
authored
Jul 15, 2019
by
Vincent Fazio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add client_auth_method test cases for OIDC
Signed-off-by:
Vincent Fazio
<
vfazio@xes-inc.com
>
parent
60e5f8db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
spec/lib/gitlab/omniauth_initializer_spec.rb
spec/lib/gitlab/omniauth_initializer_spec.rb
+28
-0
No files found.
spec/lib/gitlab/omniauth_initializer_spec.rb
View file @
f280cc1c
...
...
@@ -83,5 +83,33 @@ describe Gitlab::OmniauthInitializer do
subject
.
execute
([
cas3_config
])
end
it
'converts client_auth_method to a Symbol for openid_connect'
do
openid_connect_config
=
{
'name'
=>
'openid_connect'
,
'args'
=>
{
name:
'openid_connect'
,
client_auth_method:
'basic'
}
}
expect
(
devise_config
).
to
receive
(
:omniauth
).
with
(
:openid_connect
,
{
name:
'openid_connect'
,
client_auth_method: :basic
}
)
subject
.
execute
([
openid_connect_config
])
end
it
'converts client_auth_method to a Symbol for strategy_class OpenIDConnect'
do
openid_connect_config
=
{
'name'
=>
'openid_connect'
,
'args'
=>
{
strategy_class:
OmniAuth
::
Strategies
::
OpenIDConnect
,
client_auth_method:
'jwt_bearer'
}
}
expect
(
devise_config
).
to
receive
(
:omniauth
).
with
(
:openid_connect
,
{
strategy_class:
OmniAuth
::
Strategies
::
OpenIDConnect
,
client_auth_method: :jwt_bearer
}
)
subject
.
execute
([
openid_connect_config
])
end
end
end
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