Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
redmine-oauth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyECP
redmine-oauth
Commits
ea7ca04f
Commit
ea7ca04f
authored
Jul 09, 2016
by
Paul des Garets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update myecp path
parent
d7ce4996
Pipeline
#1078
skipped
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/controllers/redmine_oauth_controller.rb
app/controllers/redmine_oauth_controller.rb
+1
-1
No files found.
app/controllers/redmine_oauth_controller.rb
View file @
ea7ca04f
...
...
@@ -19,7 +19,7 @@ class RedmineOauthController < AccountController
redirect_to
signin_path
else
token
=
oauth_client
.
auth_code
.
get_token
(
params
[
:code
],
:redirect_uri
=>
oauth_myecp_callback_url
,
:state
=>
'okok'
)
result
=
token
.
get
(
'
https://my.ecp.fr/m
'
)
result
=
token
.
get
(
'
/api/v1/members/me
'
)
info
=
JSON
.
parse
(
result
.
body
)
if
info
allowed_domain
=
allowed_domain_for?
(
info
[
"mail"
])
...
...
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