Comments (6)
I'm currently out of computer & internet. I will check it as soon I can get both. Please be patient or downgrade version
from cas-security-spring-boot-starter.
@coskundeniz89 I'm not sure to understand because I tried using sample project and I don't have any issue related to #14 scenario.
What I tried:
- Get a
TGT
using following CAS api
> POST /cas/v1/tickets HTTP/1.1
> Host: CAS_SERVER
> Content-Type: application/x-www-form-urlencoded
> Accept: application/json
- Then ask a service ticket for my service
http://localhost:8080/api
> POST /cas/v1/tickets/TGT-1-XJv0iB6SM11NRPyFnM6cjzwQHQ7YCpmR33GTdNiE2yBQYk0xsm-33188ef14bbf HTTP/1.1
> Host: CAS_SERVER
> Content-Type: application/x-www-form-urlencoded
| service=http%3A%2F%2Flocalhost%3A8080%2Fapi
- Call service using the previous service ticket
# REQUEST
> GET /api?ticket=ST-2-a1iRq3gpa9dHhz6nnK7a-33188ef14bbf HTTP/1.1
> Host: localhost:8080
# RESPONSE
< HTTP/1.1 302
< Set-Cookie: JSESSIONID=4DD9341A23F1C122F1E93A3FC56171A7; Path=/; HttpOnly
< Location: http://locahost:8080/api
Then after 302 to http://locahost:8080/api
without issue! That prints
Hello, casuser!
Could you please provides me a sample a more detailed scenario? And are you using latest version 0.4.4
?
from cas-security-spring-boot-starter.
Hi @kakawait , i think i cant understand this problem. I havent got a problem for rest login it works. But I have problem with browser login. I do this steps:
- I enter "https://localhost:8443/protected" url to browser.
- After i redirected to "https://localhost:10100/cas/login?service=https%3A%2F%2Flocalhost%3A8443%2Flogin" url
- I enter correct username and password.
- Cas redirect "https://localhost:8443/login?ticket=ST-18-SeI241tPdEc63Y4kVCrL-dd32f4917ef6"
I havent got login page. I was expecting to go to "/protected" page. But it doesnt.
I experienced the same thing #14 . Now rest api authentication works, but page ui authentication doesnt work
from cas-security-spring-boot-starter.
And you can see this project.
https://github.com/coskundeniz89/my-cas-client
from cas-security-spring-boot-starter.
I think you can do your configuration like unicon. Base-url can change for environment and you should not interfere "login" and other urls. If you can do this, #51 issue will also be fixed.
security.cas.server-url-prefix=https://cashost.com/cas
security.cas.server-login-url=https://cashost.com/cas/login
security.cas.client-host-url=https://casclient.com
from cas-security-spring-boot-starter.
Hi @kakawait . I removed security.cas.paths from yml. It is work now. It doesnt redirect to login url (ui and rest).
from cas-security-spring-boot-starter.
Related Issues (20)
- Securing CORS RestAPI HOT 1
- Where is 1.0.0-beta-1 built from? HOT 6
- Cannot get targetUrl HOT 5
- Does it support set `ignorePattern` HOT 4
- Integration tests
- Invalid custom permission validation HOT 5
- Support for Saml11TicketValidator HOT 1
- Endpoint which authenticate from CAS Server HOT 1
- Whether it is suitable for front-end projects HOT 4
- Configuration question HOT 1
- Proxy Ticket Validator Configuration Property HOT 1
- Replace PostConstruct
- Fix JDK11 build
- Compilation error java-cas-client 3.6.1 HOT 1
- [Question] How to extract attributes from XML document return by ticket validation? HOT 1
- CAS logout custom configuration logout success url ? HOT 1
- CAS Proxy Authentication HOT 6
- Problem with Logout HOT 3
- Use springboot 2.7.0+ with SecurityFilterChain instead of deprecated WebSecurityConfigurerAdapter HOT 1
- When will it be possible to use this library with spring boot 3?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cas-security-spring-boot-starter.