Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loginservice
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanmw
loginservice
Commits
410fa224
Commit
410fa224
authored
Jun 24, 2019
by
lanminwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
5db028ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
LoginApplication.java
src/main/java/com/keymobile/proxy/LoginApplication.java
+2
-2
SecurityConfig.java
src/main/java/com/keymobile/proxy/conf/SecurityConfig.java
+3
-3
No files found.
src/main/java/com/keymobile/proxy/
Proxy
Application.java
→
src/main/java/com/keymobile/proxy/
Login
Application.java
View file @
410fa224
...
...
@@ -4,10 +4,10 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
Proxy
Application
{
public
class
Login
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Proxy
Application
.
class
,
args
);
SpringApplication
.
run
(
Login
Application
.
class
,
args
);
}
}
src/main/java/com/keymobile/proxy/conf/SecurityConfig.java
View file @
410fa224
...
...
@@ -46,14 +46,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
authorizeRequests
().
antMatchers
(
"/auth/sessionInfo"
).
permitAll
();
http
.
authorizeRequests
().
antMatchers
(
"/a
pi/a
uth/sessionInfo"
).
permitAll
();
http
.
csrf
().
disable
();
http
.
exceptionHandling
().
authenticationEntryPoint
(
authenticationEntryPoint
);
http
.
formLogin
().
successHandler
(
authenticationSuccessHandler
);
http
.
formLogin
().
failureHandler
(
authenticationFailureHandler
);
http
.
formLogin
().
loginPage
(
"/login"
);
http
.
formLogin
().
loginProcessingUrl
(
"/auth/signin"
);
http
.
logout
().
logoutUrl
(
"/auth/signout"
);
http
.
formLogin
().
loginProcessingUrl
(
"/a
pi/a
uth/signin"
);
http
.
logout
().
logoutUrl
(
"/a
pi/a
uth/signout"
);
http
.
logout
().
logoutSuccessHandler
(
logoutSuccessHandler
);
}
...
...
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