Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
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
openSource
apollo
Commits
ea77e45b
Commit
ea77e45b
authored
Oct 24, 2017
by
shine.zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portal spring security config init bug
parent
fbc41783
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
AuthConfiguration.java
...rk/apollo/portal/spi/configuration/AuthConfiguration.java
+2
-3
No files found.
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/configuration/AuthConfiguration.java
View file @
ea77e45b
...
@@ -248,9 +248,8 @@ public class AuthConfiguration {
...
@@ -248,9 +248,8 @@ public class AuthConfiguration {
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
csrf
().
disable
();
http
.
csrf
().
disable
();
http
.
headers
().
frameOptions
().
sameOrigin
();
http
.
headers
().
frameOptions
().
sameOrigin
();
http
.
authorizeRequests
()
http
.
authorizeRequests
().
antMatchers
(
"/openapi/**"
,
"/vendor/**"
,
"/styles/**"
,
"/scripts/**"
,
"/views/**"
,
"/img/**"
).
permitAll
()
.
antMatchers
(
"/openapi/*"
).
permitAll
()
.
antMatchers
(
"/**"
).
hasAnyRole
(
USER_ROLE
);
.
antMatchers
(
"/*"
).
hasAnyRole
(
USER_ROLE
);
http
.
formLogin
().
loginPage
(
"/signin"
).
permitAll
().
failureUrl
(
"/signin?#/error"
).
and
().
httpBasic
();
http
.
formLogin
().
loginPage
(
"/signin"
).
permitAll
().
failureUrl
(
"/signin?#/error"
).
and
().
httpBasic
();
http
.
logout
().
invalidateHttpSession
(
true
).
clearAuthentication
(
true
).
logoutSuccessUrl
(
"/signin?#/logout"
);
http
.
logout
().
invalidateHttpSession
(
true
).
clearAuthentication
(
true
).
logoutSuccessUrl
(
"/signin?#/logout"
);
http
.
exceptionHandling
().
authenticationEntryPoint
(
new
LoginUrlAuthenticationEntryPoint
(
"/signin"
));
http
.
exceptionHandling
().
authenticationEntryPoint
(
new
LoginUrlAuthenticationEntryPoint
(
"/signin"
));
...
...
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