Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
6b1251a1
Commit
6b1251a1
authored
8 years ago
by
Ludovic Claude
Browse files
Options
Downloads
Patches
Plain Diff
Hard-code location of the login endpoint for HBP
parent
8db89e02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/eu/hbp/mip/configuration/SecurityConfiguration.java
+3
-1
3 additions, 1 deletion
.../java/eu/hbp/mip/configuration/SecurityConfiguration.java
with
3 additions
and
1 deletion
src/main/java/eu/hbp/mip/configuration/SecurityConfiguration.java
+
3
−
1
View file @
6b1251a1
...
...
@@ -56,6 +56,8 @@ import java.io.UnsupportedEncodingException;
import
java.net.URLEncoder
;
import
java.security.Principal
;
// See https://spring.io/guides/tutorials/spring-boot-oauth2/ for reference about configuring OAuth2 login
/**
* Configuration for security.
*/
...
...
@@ -124,7 +126,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
}
private
Filter
ssoFilter
()
{
OAuth2ClientAuthenticationProcessingFilter
hbpFilter
=
new
OAuth2ClientAuthenticationProcessingFilter
(
login
Url
);
OAuth2ClientAuthenticationProcessingFilter
hbpFilter
=
new
OAuth2ClientAuthenticationProcessingFilter
(
"/
login
/hbp"
);
OAuth2RestTemplate
hbpTemplate
=
new
OAuth2RestTemplate
(
hbp
(),
oauth2ClientContext
);
hbpFilter
.
setAuthenticationSuccessHandler
(
new
SimpleUrlAuthenticationSuccessHandler
(
frontendRedirectAfterLogin
));
hbpFilter
.
setRestTemplate
(
hbpTemplate
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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